我需要爲至少Facebook,高音和電子郵件實現共享功能。 我正在使用XCode 4.5。我發現了Sharekit,並且在項目中添加類時遇到了ARC錯誤。 任何幫助將不勝感激!all in one共享fremework for xcode
0
A
回答
1
UIActivityViewController iOS 6中的新功能可以幫助您。您只需指定輸入文本/圖片和現在的控制器,並可以分享到Facebook,Twitter,電子郵件,短信等...
- (IBAction)sendPost:(id)sender {
NSArray *activityItems;
if (_postImage.image != nil) {
activityItems = @[_postText.text, _postImage.image];
} else {
activityItems = @[_postText.text];
}
UIActivityViewController *activityController =
[[UIActivityViewController alloc]
initWithActivityItems:activityItems
applicationActivities:nil];
[self presentViewController:activityController
animated:YES completion:nil];
}
0
Sharekit尚未爲ARC構建。您的選擇是關閉ARC,修正錯誤/警告,或不使用sharekit,並使用Facebook,Twitter和電子郵件內置的Apple API。
相關問題
- 1. All in one compiler
- 2. py2exe py2exe all-in-one
- 3. jEdit buffertabs one for all views
- 4. XCode All In One模式不能正常工作
- 5. All In One指令+服務+控制器
- 6. All in One Unarchive bash腳本Linux
- 7. Wordpress + All-in-One活動日曆
- 8. all in one social oauth /登錄按鈕
- 9. Floating Divs,Horizontal Scroll,and Animate.Scrollleft all in one
- 10. one vs all regression
- 11. Catch-all for if-else in C
- 12. JPA select entity and use subquery to assign value in entity all in one query
- 13. Query to select one row for one date in SQL Server
- 14. rename_column and change_column in one for active record migration
- 15. clickable listview for all subItem in its item c#
- 16. 在C#中使用DS創建一個「all-in-one」函數
- 17. liberasurecode在安裝swift-all-in-one時已棄用版本
- 18. Java在JFrame中擺動很多JPanel - getters還是all in one?
- 19. Eclipse 3.6.0 All In One - > subclipse沒有安裝
- 20. Xcode代碼共享
- 21. Postgresql ALL IN
- 22. Form :: model for one-to-one relationship
- 23. Validator for one char for user input
- 24. two listViews in one activity
- 25. google map in codename one
- 26. 共享文件夾和XCode
- 27. Onedrive For Business-共享文件
- 28. SQL ALL IN子句
- 29. Navbar Class in all activities
- 30. 如何共享和共享軸for循環
謝謝!這工作。 但是如果有人安裝了ios 5,該怎麼辦? 我的項目目標爲iOS 6。 –