空の値を持つコントローラーから戻った後にアラートがポップアップするプロジェクトに取り組んでいます。シミュレーターではポップアップしますが、iPhone ではコントローラーから戻るとアプリがフリーズして終了します。何か案は?
これが私のコードです:
- (void)manualBarcodeViewControllerDidFinish:(ManualBarcodeViewController *)controller
{
......
......
else if([barcode isEqualToString:@""])
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"error" message:@"message" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"otherbutton"];
[alert show];
[alert release];
}
}