ios - ViewControllers with segmented control performance issue -


i have list of items in uitableview, when item selected open viewcontroller segmented control supposed switch between 3 different viewcontrollers.

i using containerview view viewcontrollers along array of 3 viewcontrollers.

the problem 3 viewcontrollers need initialized , added array when item selected table. since of these viewcontrollers need fetch data core data, delay noticeable when user selects item table.

is there better way segmented control implementation can improve performance.

instead of loading 3 view controllers array why don't load them needed. example when segmentedcontrol selected loads corresponding viewcontroller.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -