gpt4 book ai didi

iphone - 在设备中测试时 SLComposeViewController 崩溃

转载 作者:行者123 更新时间:2023-11-29 13:11:54 25 4
gpt4 key购买 nike

我正在开发一个需要社交框架支持的应用程序。所以我决定用这个

SLComposeViewController *cntrlr = [[SLComposeViewController alloc]init];
cntrlr = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];

但奇怪的是这段代码甚至在 15 - 20 天前都运行良好,但现在应用程序由于这行代码而崩溃,当时我在 ipod 上测试它,但当我在模拟器上测试它时它工作正常。 请帮助我的 friend ...

最佳答案

请检查您的部署目标是否为 6.0,因为 SLComposeViewController 在 iOS 6.0 或 letter 中可用

enter image description here

请检查此引用链接:-

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Reference/SLComposeViewController_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40012205

关于iphone - 在设备中测试时 SLComposeViewController 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17067601/

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