give some screenshots to create UIBackgroundModes key in Info.plist for iOS4

帅比萌擦擦* 提交于 2019-12-17 18:26:16

问题


I'm new to iPhone development.I have already gone through some of the exploring pages to create UIBackgroundModes key in Info.plist for iOS4 .But it is little bit difficult to understand . Kindly provide some step by step procedure with screenshot example for easy understanding...also specify what the requirements which are needed ie iPhone, OS version 4.0...


回答1:


The UIBackgroundModes key identifies which background tasks your application supports. Its value is an array that contains one or more strings with the following values:

  • audio – The application plays audible content to the user while in the background.
  • location – The application keeps users informed of their location, even while running in the background.
  • voip – The application provides the ability for the user to make phone calls using an Internet connection.

You can edit the Info.plist file on Xcode. To add a new key, click on the + sign and write:

iOS 4

"UIBackgroundModes" as the key, make sure the type is set to string and then in value write audio, location or voip depending on your needs:

iOS 6

"Required background modes" as the key and then set the type in drop down menu.




回答2:


In IOS 13. It would be like the list given below.



来源:https://stackoverflow.com/questions/3413258/give-some-screenshots-to-create-uibackgroundmodes-key-in-info-plist-for-ios4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!