More Related Content
Similar to iOS6時代のTwitter / Facebook連携 (20)
iOS6時代のTwitter / Facebook連携
- 8. タップすると
表示される
Twitterの複数アカウントにも対応
- 9. ハマりポイント
• SLServiceTypeTwitterかつ
completionHandlerを実装した場合、明示的に
dismissViewControllerAnimated:completion:
しなければならない
• でないとキャンセルで閉じる場合にダブルタップ
が必要になる/送信完了後に処理が継続できな
くなる
- 11. SLRequest
• Twitter / FacebookなどへのHTTPリクエストを行
うクラス
• ソーシャルメディアのWeb APIを直接叩ける
• 独自のフォームから投稿したい場合
• データの取得
• Accounts.framework(シングルサインオンを提
供)と連携して使用する
• Social.frameworkに含まれる
- 15. iOS5とiOS6の比較
iOS5 iOS6
Twitter.framework Social.framework
TWRequest SLRequest
TWComposeViewController SLComposeViewController
• 使い方はほぼ同じ
• iOS6からTWRequest, TWComposeViewControllerはdeprecated
Editor's Notes
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n