我在看2014年的查看表示控制器的内部视频
我下载了会话的源代码(用Objective-C编写),尝试构建它,我得到了以下错误:
没有为initWithPresentingViewController:presentedViewController.声明选择器UIPresentationController的可见@接口
方法应该在UIPresentationController中吗?
发布于 2016-09-28 14:10:18
我从UIPresentationController的文档中找到了答案,这个方法应该是- (instancetype)initWithPresentedViewController (UIViewController *)presentedViewController presentingViewController:(UIViewController*)presentingViewController;,而不是-(instancetype)initWithPresentingViewController:(UIViewController *)presentingViewController presentedViewController:(UIViewController *)presentedViewController。我一改变,它就解决了这个问题
https://stackoverflow.com/questions/39749340
复制相似问题