gpt4 book ai didi

ios - 如何从另一个应用程序 IOS 打开 Facebook 应用程序设置?

转载 作者:可可西里 更新时间:2023-11-01 01:39:02 25 4
gpt4 key购买 nike

我有打开我的应用程序设置的代码:

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

但是我如何让它打开 Facebook 应用程序设置而不是我的?

最佳答案

出于引用目的,我从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)!)
}

关于ios - 如何从另一个应用程序 IOS 打开 Facebook 应用程序设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32455641/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com