- (IBAction)submitButtonClicked:(id)sender{
NSLog(@"here");
SuccessOrFailViewController *sfvc = [[SuccessOrFailViewController alloc] init];
[self presentViewController:sfvc animated:NO completion:NULL];
}
我想在用户点击应用程序中的提交按钮时打开一个新页面。但是,这会打开一个完全黑屏,没有任何东西。我如何让它打开viewController呢?presentViewController显示黑色页面
在此陈述中缺少“=”:SuccessOrFailViewController * sfvc [storyboard instantiateViewControllerWithIdentifier:@“SuccessOrFailViewController”]; – mikemike396 2013-08-08 02:11:13
编辑答案并修复它。 Thx – Lefteris 2013-08-08 06:17:29
使用故事板的方法非常酷! Thaks – pash3r 2014-01-31 11:09:15