Instead of calling:
[NSThread detachNewThreadSelector:@selector(parseXML) toTarget:self withObject:nil];
you should call:
[self performSelectorInBackground:@selector(parseXML) withObject:nil]
Your user interface freezes because you are doing lengthy operations in the user interface thread.
source
share