Processing a method after the view has loaded..

Posted by Susanth on Stack Overflow See other posts from Stack Overflow or by Susanth
Published on 2010-06-08T11:28:59Z Indexed on 2010/06/08 11:32 UTC
Read the original article Hit count: 144

Filed under:
|
|
|

Hi !

I have implemented a subview which is supposed to load immediately when I click a button in the parent view. After loading the subview(which is basically holding an activityindicator), the program is supposed to process a method(which gets data from a server, so takes time) in it.

However, I am unable to do it.

What happens now is, when I click the button on the parent view, it processes the method first and only after that does the subview load on screen.

Why is this so? Is there any specific functions I could use to make my method load only after the view has loaded?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode