Activity indicator on startup screen in iOS using Xcode6

Is it possible to use UIActivityIndicator in the launch window using Xcode6

I tried, but did not animate, not sure if this is possible or not.

Maybe someone tried it or knows if it is possible or not?

Thanks.

+8
ios xcode6
source share
3 answers

What you are trying to achieve is to show the ActivityIndicator during the startup screen, which is not possible, but you can achieve it in some other way.

Here is an idea that might help you:

  • Create a separate download page and call it from the didFinishLaunchingWithOptions method in delegate deletion
  • Add an image and Splash indicator to it.
  • You can set the timer for 2-3 seconds, than redirect to the first page of the application.
  • When using the indicator, make sure that you set StartAnimating to true or simply add the indicator programmatically as follows:

    UIActivityIndicatorView *activity = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(225, 115, 30, 30)]; [activity setBackgroundColor:[UIColor clearColor]]; [activity setActivityIndicatorViewStyle: UIActivityIndicatorViewStyleGray]; [self.view addSubview: activity]; [activity startAnimating]; 

Hope this works for you.

+2
source share

You cannot encode animations on the launch screen ... if you want to make any animations on the launch screen ... use your first view controller as a splash ...

+3
source share

Go to the storyboard, then select your ActivityIndicator and change the property to Animation

-4
source share

All Articles