Hi I need to show activity indicator but not able to find the right approach, what I tried is:
1) In ViewDidLod
[self performSelectorOnMainThread:@selector(setupActivityIndicator) withObject:nil waitUntilDone:NO];
[self userDataFromServer]
;
[self performSelectorOnMainThread:@selector(stopActivityIndicatorInMainThread) withObject:nil waitUntilDone:NO]
----OR-----
2) In ViewDidLod
[self startActivityIndicator];
[self userDataFromServer]
;
[self stopActivityIndicator];
Both are working in the say way which is not correct. Can any one help me how we can use activityindicator on parallel thread.