objective c - iphone; Doing stuff only once the view appears..ViewWillAppear? -


hi there ran confusion related this; perform actions once view appeared, showing activity indicator while data being collected. have written code in viewwillappear, seems firing before view appears on screen. have double checked nslog statements, , added sleep of 2 seconds in viewwillappear, nslog statements fired, , view appears after 2 seconds delay - expected, 2 second delay executed once view comes onto screen?

am doing wrong? tried viewdidappear, same thing. suggestions?

thanks

edit: give clear scenario of doing

1. have parent view, has scroll view - , subview 2. in parent view, create multiple instances of subview , add them scrollview, creating scrollable views, work. 3. each view passed argument , depending on argument view contents change - works expected. 4. show subview , once on screen, internet opearations while show activity indicator, need use viewdidapper. 5. manually firing subview's viewdidappear parent view, once have created instance 

the problem here is, view appearing once operations complete.

how can sort this?

viewwillappear supposed fire before view appears, hence word will in name. might interested in viewdidappear.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -