I tried to show UIAlertView in another thread(Main Thread). But it always goes to thread 1 exc_bad_access (code=1 address=0x0) error.
I Used following code.
if ([urlData writeToFile:attachmentPath atomically:YES]) {
UIAlertView *sucessAlrt = [[UIAlertView alloc] initWithTitle:gaAppName
message:@"File has been Downloaded successfully"
delegate:self
cancelButtonTitle:nil
otherButtonTitles:@"OK", nil];
[sucessAlrt performSelectorOnMainThread:@selector(show)
withObject:nil waitUntilDone:NO];
}
why it goes to bad access error ??