I\'m familiar with using AsyncTask in Android: create a subclass, call execute on an instance of the subclass and onPostExecute is cal
if your targeting earlier iOS Version (than iOS 4 for Grand Central Dispatch) you could use the NSObject performSelector methods
Execute on Background Thread performSelectorInBackground:withObject:
And execute on MainThread performSelectorOnMainThread:withObject:waitUntilDone:
This is an example:
[self performSelectorInBackground:@selector(executeInBackground) withObject:nil];
-(void) executeInBackground
{
NSLog(@"executeInBackground");
[self performSelectorOnMainThread:@selector(executeOnMainThread) withObject:nil waitUntilDone:NO];
}
-(void) executeOnMainThread
{
NSLog(@"executeOnMainThread");
}