gpt4 book ai didi

ios - 找不到实例方法(返回类型默认为 'id' )

转载 作者:行者123 更新时间:2023-11-28 22:26:34 24 4
gpt4 key购买 nike

我正在接受来自 Xcode 的警告:

Instance method '-presentModalViewController:animated:completion:' not found (return type defaults to 'id')

代码如下:

    NewsWebViewController *sampleView = [[[NewsWebViewController alloc] init] autorelease];
[self presentModalViewController:sampleView animated:YES completion:nil];

}

在与您联系之前,我尝试了您的不同解决方案,请体谅我的歉意,我是法国人,我使用谷歌翻译进行翻译。

谢谢你。

最佳答案

该方法称为 presentViewController:animated:completion: .

此选择器中没有Modal

关于ios - 找不到实例方法(返回类型默认为 'id' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18791463/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com