-(IBAction)showCountryInfo:(id)sender
{
@try
{
CountryProperties *countryProperties=[self.storyboard instantiateViewControllerWithIdentifier:@"Culture"];
countryProperties.countryID=self.countryID;
countryProperties.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self.navigationController presentModalViewController:countryProperties animated:YES];
}
@catch (NSException *exception)
{
UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Sorry" message:@"Module under revision" delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil, nil];
[alert show];
}
}
私はこのコードからalertViewを表示するだけで、ユーザーが「Dismiss」ボタンを押すとalertViewが消えるはずです。それで全部です。とにかく、アラートビューは機能しません。例外が発生した場合、アラート ビューが表示されますが、閉じるボタンを押しても何も起こらず、プログラムはフリーズしたままです。
@catch ブロック内などで alertView を使用しているため、悪が発生しますか?
事前にサンクス。