Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
522 views
in Technique[技术] by (71.8m points)

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

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...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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: Info.plist

iOS 6

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

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...