In my NiB, I have several View controllers. When the app launches, all their corresponding ViewDidLoad() calls are called.
in ViewControllerA, I have ViewA that contains a UiScrollView with 100 pictures. In initalize these pictures in ViewdidLoad. So on app launch, all pictures are initalized.
In my Main Menu View Controller, I have a button that when pressed calls presentModalViewController:ViewControllerA
That call is taking 20 seconds.
I thought the pre loading in ViewDidload would optimize this. However, once the call returns and recalled (bringing up this VC the second time, its really quick and instant).
So what is causing this? Why is it taking so long the first time calling presentModalViewController. Internally, is it trying to arrange all the images? Any way of optimizing this? If not, whats the best way to show UiActivityIndicator
Thank you in Advance