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

标签 iphone ios facebook social-networking

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

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/

相关文章:

iOS TableView 加载相同的单元格

ios - 如何快速注册使用 ParseUI 的 Facebook 按钮登录的 PFUser?

iphone - 两个 View Controller 可以成为彼此的委托(delegate)吗?

iphone - 在 AppDelegate 完成加载之前,我的 iPhone 应用程序在加载时崩溃

iphone - 如何在 Xcode 1.5 中使用 phonegap

ios - Swift 3 中的 "dispatch_apply"是什么?

javascript - 网站在打开用户链接时,打开一个页面然后重定向的原因是什么?

javascript - Facebook 分享按钮未加载 Rails turbolinks

iphone - UIActivity 重复调用 'activityViewController'

ios - 无法转换 UITableViewCell 类型的值