In my application, I am having 5 viewControllers. In which I have 4 web services call. While going from 4th controller to 5th controller, there is no web service, Still taking so much time to load.
What could be the possible possible reasons?
My observation :
You can check against some potential cases:
In VC4, are you doing something in viewWillDisappear
or viewDidDisappear
?
Make sure you are loading data asynchronously in VC4?
Are you doing something bulky in viewWillAppear
in VC5?
If you go from VC1/2/3 to VC5, does it still take a lot of time?
In my case, the font assigned to control(s) was wrong.
ProximaNovaSoft-Semibold
font was assigned to controls, but this font did not exist. The real font was Proxima Nova Semibold
.
Because ProximaNovaSoft-Semibold
did not exist, the system took time to search for this font causing a delay.
After I corrected the font for some of my controls, it loads fast.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With