How to launch myapplication settings tab in settings app from my application in ipad

后端 未结 4 1582
梦谈多话
梦谈多话 2021-01-15 15:08

Is there any way to open myapplication settings tab directly from my application like what we will use to open twitter settings

([[UIApplication sharedAppli         


        
4条回答
  •  离开以前
    2021-01-15 15:44

    Avoid using the canSendTweet method to check before you tweet, just present the ViewController. Should work for the Social framework as well, if you are working with iOS6. Example below.

    TWTweetComposeViewController *tweetSheet = [[TWTweetComposeViewController alloc] init];
    [self presentModalViewController:tweetSheet animated:YES];
    
    //If the user doesn't have twitter enabled then an alertview will pop up giving them to option to go straight to settings.
    

提交回复
热议问题