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?