ios - Best practice to have multiple tableviews in a single view controller -


this question maybe asked in stackoverflow. but, did not clear idea scenario.

i have viewcontroller (say, myviewcontroller).

i have scrollview(say, myscrollview) , have n number of views (say myview1, myview2, ...) in it.

those views can scrolled horizontally. refer below image more clarification.

enter image description here

this image taken here.

so, red area scroll view holds multiple views yellow color.

scenario:

i want call api's each view, when api calling , parsing data occurs, need show loading activity indicator in views. after successful parsing, need update corresponding view uitableview.

questions:

  • in case, number of views may vary 3 6. should maintain 6 separate uitableviews , uiactivityindicator's?

  • i tried 3 pointers left, middle & right hold reference of tableview , activity indicator. problem is, before first 3 pages loading, if user goes fourth view, system collapse many conditions.

suggestions needed. confused!!

i think have use uipageviewcontroller uitableview. solve problem.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -