ios – 未找到实例方法’-presentViewController:animated’

ios – 未找到实例方法’-presentViewController:animated’,第1张

概述我对此很新,所以请耐心等待.我的代码中还有2个错误要修复.在这两种情况下都找不到我的实例方法: -(IBAction)goFlipSide { NSLog(@"goFlipSide has been called:"); FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibN 我对此很新,所以请耐心等待.我的代码中还有2个错误要修复.在这两种情况下都找不到我的实例方法:

-(IBAction)goFlipSIDe {    NSLog(@"goFlipSIDe has been called:");    FlipsIDeVIEwController *controller = [[FlipsIDeVIEwController alloc] initWithNibname:@"FlipsIDeVIEwController" bundle:nil];    controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;    [self presentVIEwController:controller animated:YES];    [controller release];}- (voID)flipsIDeVIEwControllerDIDFinish:(FlipsIDeVIEwController *)controller {    [self dismissVIEwControllerAnimated:YES];    //This method gets fired when the user clicks done on the modal FlipsIDeVIEwController.  This is different    //than the vIEwWillAppear.    self.navigationController.navigationbarHIDden = TRUE;    /*    if (self.goVIEwSuccess == TRUE) {        //if the goVIEwSuccess boolean is set to YES - then we can load the load the goVIEwController        NSLog(@"goVIEwSuccess is YES");        [self loadGoVIEwController];    }    */}

找不到两个实例方法:presentVIEwController:和dismissVIEwControllerAnimated:.

解决方法 什么课是自我?这些方法只能在UIVIEwController上找到.完整的选择器是:

> presentVIEwController:animated:completion:
> dismissVIEwControllerAnimated:完成:

尝试添加完成块参数.

总结

以上是内存溢出为你收集整理的ios – 未找到实例方法’-presentViewController:animated’全部内容,希望文章能够帮你解决ios – 未找到实例方法’-presentViewController:animated’所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1052632.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存