我可以在应用程序运行时以编程方式翻转Info.plist值吗? [英] Can I programmatically flip Info.plist values while my application is running?

查看:65
本文介绍了我可以在应用程序运行时以编程方式翻转Info.plist值吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣在应用程序中使用 SBUsesNetwork UIRequiresPersistentWiFi 键;但是,我只想在使用一组特定的视图控制器时启用它们.有没有办法在应用程序运行时以编程方式翻转这些键值?

I am interested in using the SBUsesNetwork and UIRequiresPersistentWiFi keys in my application; however, I would like to enable them only when using a certain set of view controllers. Is there a way to programmatically flip those key values while the application is running?

推荐答案

您在运行时无法修改软件包的内容,您对该目录没有写权限.我不确定是否有一种方法可以完全按照您的意愿进行.

You can't modify your bundle contents while running, you don't have write access to that directory. I'm not sure there's a way to do exactly what you want.

这篇关于我可以在应用程序运行时以编程方式翻转Info.plist值吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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