Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

iphone - Unable to create UIBackgroundModes key in Info.plist for iOS4

I have an audio application which works great for iPhone 3.1.x versions.

I am trying to upgrade it to iOS4.0 to work in multitasking environment. When I try to create a new UIBackgroundModes key in info.plist, it ("Required Background Modes") doesn't show up in drop down list?

I also upgraded the Xcode SDK to 3.2.3, Base SDK to 4.0, deployment target to 4.0 but still UIBackgroundModes ("Required Background Modes") won't show up in info.plist drop down list.

I also created test project for 4.0, and its info.list drop down list has "Required Background Modes".

Did I miss something?

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

You can add the key manually by edit the .plist file

    <key>UIBackgroundModes</key>
    <array>
            <string>audio</string>
    </array>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...