i have six viewControllers and six buttons in my project. every button brings the appropriate ViewController. but the thing is when the user taps for example 4th button then the application freze for one or two seconds and then the requested ViewControl is loaded. all i want to do is to make that things faster. i mean i checked some applications there it was done like first the requested ViewController is brought then it starts to load the controls. how i can do such thing in my application ?
i have six viewControllers and six buttons in my project. every button brings the
Share
Using the “Time Profiler” tool in instruments you can see which functions in your code are slow. This should help figure out where your code is slowing down.
For instance, if you swapped all your view controllers out with blank ones you shouldn’t see any freezing. Chances are something in your view controller initialization code is slowing you down.