I am not able to understand difference between calling a function in background like
[self performSelectorInBackground:@selector(getFriendFaceBookList) withObject:nil];
and calling the same function in a Thread :
[NSThread detachNewThreadSelector:@selector(getFriendFaceBookList) toTarget:self withObject:nil];
Which one is the best way to work in non ARC app.
Thanks
They’re identical. See Documentation
performSelectorInBackground:withObject: The effect of calling this method is the same as if you called the detachNewThreadSelector:toTarget:withObject: method of NSThread with the current object, selector, and parameter object as parameters.
Hope it helps.