swift - iOS - Different ViewControllers - how to load them? -


i’m trying develop app uses 3 different view controllers on first tab. have 3 options: 1 - embed view controllers in uipageviewcontroller 2 - embed view controllers in uiscrollview 3 - use containers controlled uisegmentedcontroller - hidden property true or false… each of these viewcontrollers using collectionviews present photos downloaded asynch remote server. using 3, photos view controllers, loads @ same time, so, isn’t solution think. 1 best solution choose in scenario?

if you're worried downloading large images simultaneously begin download process in viewdidappear. unless user opens 1 of view controllers download process not kick in.

if you're worried multiple view controllers sitting in memory should design them well. using uitableviewcontroller or uicollectionview keep memory usage low reusing views.

in opinion should pick solution according ui design , build code efficiently won't have worry large downloads or running out of memory


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -