9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

端末の設定画面(Twitter)へ飛ばしたい

Posted at

iPhoneにTwitterアカウントを紐付けてない場合に、
どうしても、飛ばしたくて強引にやった。(iOS7で検証)

なんか超黒魔術ぽいんですけど。
もっと標準的なやつあったら、教えてください m(__)m

OpenSettingForTwitter.m
- (void)viewDidLoad
{
    SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
    tweetSheet.view.hidden = YES;
    [self presentViewController:tweetSheet animated:NO completion:^{
        [self dismissViewControllerAnimated:NO completion:nil];
    }];
}
9
9
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?