我有iPhone和我想要的时候AlertView
显示和用户按确定按钮后,该视图应该改变,但它没有发生。如何移动到下一个视图控制器后显示alertview
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Thank you" message:@"" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
return;
[self moveToView];
-(void)moveToView
{
MainViewController*targetController=[[MainViewController alloc]init];
[self.navigationController pushViewController:targetController animated:YES];
}
您使用的故事板? – 2012-07-10 10:29:58