i am parsing xml in background thread.
Code:
[self performSelectorInBackground:@selector(parseXML) withObject:nil];
but if i dismiss the view before it ends parsing it'll cause the app to crash. in the ViewWillDisappear i have this
Code:
- (void) viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
[xmlParser abortParsing];
[xmlParser release];
xmlParser = nil;
}
but the moment i dismiss the view app will crash.
any ideas please !