我尝试更改视图,但我遇到了netx错误:没有可见的@interface用于' primera_vista'声明选择器' presentModalViewController:animated:completion'
我的代码:
-(IBAction)goSecondView:(id)sender
{
segunda_vista *segundaVista = [[segunda_vista alloc] initWithNibName:nil bundle:nil];
segundaVista.modalPresentationStyle = UIModalPresentationPageSheet;
segundaVista.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController: segundaVista animated: YES completion:nil];
}
谢谢大家。
答案 0 :(得分:0)
没有presentModalViewController:animated:completion
方法。
取而代之的是presentViewController:animated:completion:
像这样使用:
[self presentViewController: segundaVista animated: YES completion:nil];