简体   繁体   English

如何从另一个 App IOS 打开 Facebook 应用设置?

[英]How to open Facebook app settings from another App IOS?

I have the code to open my app settings:我有打开我的应用程序设置的代码:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

But how do i get it to open Facebook app settings instead of mine ?.但是我如何让它打开 Facebook 应用程序设置而不是我的设置?

for reference purpose I Taken the answer from here仅供参考,我从这里得到了答案

If your app has it's own settings bundle, the settings will be opened showing your app's settings.如果您的应用程序有自己的设置包,则会打开设置并显示您的应用程序设置。 If your app does not have a setting bundle, the main settings page will be shown.如果您的应用程序没有设置包,则会显示主设置页面。

if(&UIApplicationOpenSettingsURLString != nil)
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
}

Swift迅速

if UIApplicationOpenSettingsURLString != nil {
UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!)
 }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从iOS 8中的应用程序打开常规设置(不在应用程序设置中)? - How to open general settings (not in the app settings) from the app in iOS 8? 从 iOS 中的另一个应用程序打开设置应用程序 - React Native - Open Settings App from another App in iOS - React Native 从应用程序打开iOS设置 - Open iOS settings from the app 从另一个应用程序以编程方式在iOS的设置应用程序中打开键盘的设置屏幕 - Open Keyboard's settings screen in iOS's settings app programmatically from another app 如何在Facebook应用程序中以编程方式打开设置? - How to open Settings programmatically like in Facebook app? 如何从我的PhoneGap应用程序打开另一个iOS应用程序? - How to open another iOS app from my PhoneGap app? 如何从另一个iOS应用程序打开Goog​​le Street View应用程序 - How to Open Google Street View App from an another iOS App 如何从 iOS 上的另一个应用程序打开 Google Play 音乐应用程序? - How to open Google Play Music app from another app on iOS? 从另一个应用程序打开iOS应用程序 - open iOS app from another app 如何在iOS应用中处理来自Facebook Open Graph操作的URL - How to handle URLs from Facebook Open Graph actions in iOS app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM