title: static functions vs normal class function
body: <p>I need to show an activity indicator quite often in my application so i have written a class like this.
  import Foundation</p>
  
  <pre><code>class ActivityIndicator
  {
      static func startActivityIndicator(mainView:UIView)
      {
          let activityIndicator = UIActivityIndicatorView()
          activityIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.WhiteLarge
          activityIndicator.color = UIColor.grayColor()
          activityIndicator.center = mainView.center
          activityIndicator.startAnimating()
          mainView.addSubview(activityIndicator)
      }
  }
  </code></pre>
  
  <p>I have made the "startActivityIndicator" function static just because it looks clean implementation. I just want to know is there any hit on performance or memory wise if we make loads of static functions in an app.
  Can anyone shed a light please?</p>