首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有为initWithPresentingViewController:presentedViewController声明选择器UIPresentationController的可见@接口

没有为initWithPresentingViewController:presentedViewController声明选择器UIPresentationController的可见@接口
EN

Stack Overflow用户
提问于 2016-09-28 13:43:44
回答 1查看 121关注 0票数 0

我在看2014年的查看表示控制器的内部视频

我下载了会话的源代码(用Objective-C编写),尝试构建它,我得到了以下错误:

没有为initWithPresentingViewController:presentedViewController.声明选择器UIPresentationController的可见@接口

方法应该在UIPresentationController中吗?

EN

回答 1

Stack Overflow用户

发布于 2016-09-28 14:10:18

我从UIPresentationController的文档中找到了答案,这个方法应该是- (instancetype)initWithPresentedViewController (UIViewController *)presentedViewController presentingViewController:(UIViewController*)presentingViewController;,而不是-(instancetype)initWithPresentingViewController:(UIViewController *)presentingViewController presentedViewController:(UIViewController *)presentedViewController。我一改变,它就解决了这个问题

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39749340

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档