這裏是我的代碼:UIAlertView中創建EXC_BAD_ACCESS
#ifdef DEBUG
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"ERROR" message:@"JSON Parsing Error" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
[alertView release];
#endif
此代碼是在後臺線程(負責解析)執行,並且錯誤僅發生每隔時間。任何想法在這裏有什麼問題?
完美的答案,因爲我在的iOS 6.0的問題,其解決了 –