如何从ipad中的应用程序启动设置应用程序中的myapplication设置选项卡 [英] How to launch myapplication settings tab in settings app from my application in ipad

查看:119
本文介绍了如何从ipad中的应用程序启动设置应用程序中的myapplication设置选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法直接从我的应用程序打开我的应用程序设置选项卡,比如我们将用于打开Twitter设置

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

([[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=TWITTER"]]).


推荐答案

在发推文之前,请避免使用canSendTweet方法进行检查,只是呈现ViewController。如果你正在使用iOS6,也应该为社交框架工作。示例如下。

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.

这篇关于如何从ipad中的应用程序启动设置应用程序中的myapplication设置选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆