¡@

Home 

2014/10/15 ¤U¤È 10:10:19

iphone Programming Glossary: info.plist

How to disable highlighting of the app icon?

http://stackoverflow.com/questions/1003177/how-to-disable-highlighting-of-the-app-icon

Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like

is not. I read it is possible to create a unique protocol suffix for this and register it in the Info.plist but Mobile Safari will give an error in case the app is not installed. What would be a workaround One..

Determining if an iPhone is Jail broken Programatically

http://stackoverflow.com/questions/1140856/determining-if-an-iphone-is-jail-broken-programatically

ipa cracks.blogspot.com 2008 11 detection.html In short the cracking usually requires changing the Info.plist. Since it's regular file you have access to it's pretty easy to determine such changes. share improve..

Autorotate in iOS 6 has strange behaviour

http://stackoverflow.com/questions/12526054/autorotate-in-ios-6-has-strange-behaviour

controller ™s supported orientations with the app ™s supported orientations as determined by the Info.plist file or the app delegate ™s application supportedInterfaceOrientationsForWindow method to determine whether.. new autorotation behaviors. In other words they do not fall back to using the app app delegate or Info.plist file to determine the supported orientations. Instead the shouldAutorotateToInterfaceOrientation method.. method. If you want your whole app to rotate then you should set your Info.plist to support all orientations. Now if you want a specific view to be portrait only you will have to do..

'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'

http://stackoverflow.com/questions/18736954/missing-recommended-icon-file-the-bundle-does-not-contain-an-app-icon-for-iph

your project Resource folder and add this icon into the project After this click on ProjectName Info.plist and find the icon files row. If you can't find it then add it by clicking the sign and select icon files..

Landscape Mode ONLY for iPhone or iPad

http://stackoverflow.com/questions/2647786/landscape-mode-only-for-iphone-or-ipad

the following steps to make it launch in a landscape orientation initially. In your application ™s Info.plist file add the UIInterfaceOrientation key and set its value to the landscape mode. For landscape orientations..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles key array string Document molecules.. applications on the system can be made aware of it. To do this you would add a section to your Info.plist like the following key UTExportedTypeDeclarations key array dict key UTTypeConformsTo key array string..

Exit application in iOS 4.0

http://stackoverflow.com/questions/3097244/exit-application-in-ios-4-0

to exit in them in the past. Exiting instead of suspending by setting the appropriate key in the Info.plist file is perfectly fine of course but that's not a dedicated UI Button just application specific implementation..

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

sed i .bak 's XCiPhoneOSCodeSignContext XCCodeSignContext ' Developer Platforms iPhoneOS.platform Info.plist If you have Xcode open restart it for this change to take effect. Manual Deployment over WiFi The following..

Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?

http://stackoverflow.com/questions/7760946/is-it-possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk

armv7. 3 Change the Target's Build Settings iOS Deployment Target to iOS 4.2. 4 Open the projects Info.plist remove the setting Required device capabilities note it required armv7 btw I figured this out when I.. I tried to manually add the app via the organizer and it reported Can't install application The Info.plist for application at Users ... TestsDebug.app specifies device capability requirements which are not met..

Reducing piracy of iPhone applications

http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications

unique IDs against a list of accepted IDs. Currently there are three things crackers do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity.. of accepted IDs. Currently there are three things crackers do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application.. do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application Signing The last one is easiest to check with this code NSBundle..

How to write data in plist?

http://stackoverflow.com/questions/905542/how-to-write-data-in-plist

if plistPath NSBundle mainBundle bundlePath stringByAppendingPathComponent @ Contents Info.plist if manager isWritableFileAtPath plistPath NSMutableDictionary infoDict NSMutableDictionary dictionaryWithContentsOfFile..

How to disable highlighting of the app icon?

http://stackoverflow.com/questions/1003177/how-to-disable-highlighting-of-the-app-icon

Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like

is installed on the phone and with Mobile Safari in case it is not. I read it is possible to create a unique protocol suffix for this and register it in the Info.plist but Mobile Safari will give an error in case the app is not installed. What would be a workaround One idea 1 Use http URLs that open in any desktop browser and..

Determining if an iPhone is Jail broken Programatically

http://stackoverflow.com/questions/1140856/determining-if-an-iphone-is-jail-broken-programatically

Autorotate in iOS 6 has strange behaviour

http://stackoverflow.com/questions/12526054/autorotate-in-ios-6-has-strange-behaviour

its shouldAutorotate method. The system intersects the view controller ™s supported orientations with the app ™s supported orientations as determined by the Info.plist file or the app delegate ™s application supportedInterfaceOrientationsForWindow method to determine whether to rotate. The system determines whether an orientation.. shouldAutorotateToInterfaceOrientation method do not get the new autorotation behaviors. In other words they do not fall back to using the app app delegate or Info.plist file to determine the supported orientations. Instead the shouldAutorotateToInterfaceOrientation method is used to synthesize the information that would be returned.. synthesize the information that would be returned by the supportedInterfaceOrientations method. If you want your whole app to rotate then you should set your Info.plist to support all orientations. Now if you want a specific view to be portrait only you will have to do some sort of subclass and override the autorotation methods..

'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'

http://stackoverflow.com/questions/18736954/missing-recommended-icon-file-the-bundle-does-not-contain-an-app-icon-for-iph

example icon 120.png and icon 152.png . Put this icons into your project Resource folder and add this icon into the project After this click on ProjectName Info.plist and find the icon files row. If you can't find it then add it by clicking the sign and select icon files and then set all icon images like below. Now archive and..

Landscape Mode ONLY for iPhone or iPad

http://stackoverflow.com/questions/2647786/landscape-mode-only-for-iphone-or-ipad

runs in landscape mode only however you must perform the following steps to make it launch in a landscape orientation initially. In your application ™s Info.plist file add the UIInterfaceOrientation key and set its value to the landscape mode. For landscape orientations you can set the value of this key to UIInterfaceOrientationLandscapeLeft..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

.pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles key array string Document molecules 320.png string string Document molecules 64.png string array.. application specific UTI will need to be exported so that other applications on the system can be made aware of it. To do this you would add a section to your Info.plist like the following key UTExportedTypeDeclarations key array dict key UTTypeConformsTo key array string public.plain text string string public.text string array..

Exit application in iOS 4.0

http://stackoverflow.com/questions/3097244/exit-application-in-ios-4-0

. And we have seen many reports of apps that had calls to exit in them in the past. Exiting instead of suspending by setting the appropriate key in the Info.plist file is perfectly fine of course but that's not a dedicated UI Button just application specific implementation of program exit by the home button. share improve..

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

to allow the self signed certificate to be used sudo usr bin sed i .bak 's XCiPhoneOSCodeSignContext XCCodeSignContext ' Developer Platforms iPhoneOS.platform Info.plist If you have Xcode open restart it for this change to take effect. Manual Deployment over WiFi The following steps require openssh and uikittools to be installed..

Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?

http://stackoverflow.com/questions/7760946/is-it-possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk

the Target's Build Settings Valid Architecture to armv6 and armv7. 3 Change the Target's Build Settings iOS Deployment Target to iOS 4.2. 4 Open the projects Info.plist remove the setting Required device capabilities note it required armv7 btw I figured this out when I tried to manually add the app via the organizer and it reported.. note it required armv7 btw I figured this out when I tried to manually add the app via the organizer and it reported Can't install application The Info.plist for application at Users ... TestsDebug.app specifies device capability requirements which are not met by Dev iPhone 3G All should work after that. Talk about a..

Reducing piracy of iPhone applications

http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications

for piracy use. This does not involve you to check the iPhone unique IDs against a list of accepted IDs. Currently there are three things crackers do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application Signing The last one is easiest.. involve you to check the iPhone unique IDs against a list of accepted IDs. Currently there are three things crackers do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application Signing The last one is easiest to check with this code NSBundle.. of accepted IDs. Currently there are three things crackers do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application Signing The last one is easiest to check with this code NSBundle bundle NSBundle mainBundle NSDictionary info bundle..

How to write data in plist?

http://stackoverflow.com/questions/905542/how-to-write-data-in-plist

plistPath nil NSFileManager manager NSFileManager defaultManager if plistPath NSBundle mainBundle bundlePath stringByAppendingPathComponent @ Contents Info.plist if manager isWritableFileAtPath plistPath NSMutableDictionary infoDict NSMutableDictionary dictionaryWithContentsOfFile plistPath infoDict setObject NSNumber numberWithBool..

How to disable highlighting of the app icon?

http://stackoverflow.com/questions/1003177/how-to-disable-highlighting-of-the-app-icon

Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like

Safari in case it is not. I read it is possible to create a unique protocol suffix for this and register it in the Info.plist but Mobile Safari will give an error in case the app is not installed. What would be a workaround One idea 1 Use http URLs..

Determining if an iPhone is Jail broken Programatically

http://stackoverflow.com/questions/1140856/determining-if-an-iphone-is-jail-broken-programatically

Autorotate in iOS 6 has strange behaviour

http://stackoverflow.com/questions/12526054/autorotate-in-ios-6-has-strange-behaviour

intersects the view controller ™s supported orientations with the app ™s supported orientations as determined by the Info.plist file or the app delegate ™s application supportedInterfaceOrientationsForWindow method to determine whether to rotate. The.. do not get the new autorotation behaviors. In other words they do not fall back to using the app app delegate or Info.plist file to determine the supported orientations. Instead the shouldAutorotateToInterfaceOrientation method is used to synthesize.. returned by the supportedInterfaceOrientations method. If you want your whole app to rotate then you should set your Info.plist to support all orientations. Now if you want a specific view to be portrait only you will have to do some sort of subclass..

'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'

http://stackoverflow.com/questions/18736954/missing-recommended-icon-file-the-bundle-does-not-contain-an-app-icon-for-iph

. Put this icons into your project Resource folder and add this icon into the project After this click on ProjectName Info.plist and find the icon files row. If you can't find it then add it by clicking the sign and select icon files and then set all..

Landscape Mode ONLY for iPhone or iPad

http://stackoverflow.com/questions/2647786/landscape-mode-only-for-iphone-or-ipad

you must perform the following steps to make it launch in a landscape orientation initially. In your application ™s Info.plist file add the UIInterfaceOrientation key and set its value to the landscape mode. For landscape orientations you can set..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles key array string Document molecules 320.png string string.. exported so that other applications on the system can be made aware of it. To do this you would add a section to your Info.plist like the following key UTExportedTypeDeclarations key array dict key UTTypeConformsTo key array string public.plain text..

Exit application in iOS 4.0

http://stackoverflow.com/questions/3097244/exit-application-in-ios-4-0

apps that had calls to exit in them in the past. Exiting instead of suspending by setting the appropriate key in the Info.plist file is perfectly fine of course but that's not a dedicated UI Button just application specific implementation of program..

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

be used sudo usr bin sed i .bak 's XCiPhoneOSCodeSignContext XCCodeSignContext ' Developer Platforms iPhoneOS.platform Info.plist If you have Xcode open restart it for this change to take effect. Manual Deployment over WiFi The following steps require..

How to include and use new fonts in iPhone SDK?

http://stackoverflow.com/questions/4969329/how-to-include-and-use-new-fonts-in-iphone-sdk

c cocoa touch iphone sdk 3.0 ios4 share improve this question Add the font files to your resource files Edit your Info.plist Add a new entry with the key Fonts provided by application . For each of your files add the file name to this array On the..

Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?

http://stackoverflow.com/questions/7760946/is-it-possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk

to armv6 and armv7. 3 Change the Target's Build Settings iOS Deployment Target to iOS 4.2. 4 Open the projects Info.plist remove the setting Required device capabilities note it required armv7 btw I figured this out when I tried to manually add.. figured this out when I tried to manually add the app via the organizer and it reported Can't install application The Info.plist for application at Users ... TestsDebug.app specifies device capability requirements which are not met by Dev iPhone 3G..

Reducing piracy of iPhone applications

http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications

to check the iPhone unique IDs against a list of accepted IDs. Currently there are three things crackers do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application.. IDs against a list of accepted IDs. Currently there are three things crackers do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application Signing The last one.. things crackers do Edit the Info.plist file Decode the Info.plist from binary to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application Signing The last one is easiest to check with this code NSBundle bundle NSBundle..

How to write data in plist?

http://stackoverflow.com/questions/905542/how-to-write-data-in-plist

NSFileManager defaultManager if plistPath NSBundle mainBundle bundlePath stringByAppendingPathComponent @ Contents Info.plist if manager isWritableFileAtPath plistPath NSMutableDictionary infoDict NSMutableDictionary dictionaryWithContentsOfFile..

How do I start playing audio when in silent mode & locked in iOS 6?

http://stackoverflow.com/questions/9725192/how-do-i-start-playing-audio-when-in-silent-mode-locked-in-ios-6

AudioSessionSetProperty kAudioSessionProperty_AudioCategory sizeof sessionCategory sessionCategory And setting Info.plist to Required background modes UIBackGroundModes App plays audio audio At Present I can play audio even in silent when the..

Getting user location every n minutes after app goes to background

http://stackoverflow.com/questions/10235203/getting-user-location-every-n-minutes-after-app-goes-to-background

Use custom fonts in iPhone App [duplicate]

http://stackoverflow.com/questions/13029660/use-custom-fonts-in-iphone-app

customFont And the Plist is iphone ios fonts share improve this question Try below Steps. 1 Make configuration in info.plist as shown in Image Now You SHould Use That Added File UIFont customFont UIFont fontWithName @ fileName size size further..

'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'

http://stackoverflow.com/questions/18736954/missing-recommended-icon-file-the-bundle-does-not-contain-an-app-icon-for-iph

to the resource folder Icon 120.png 120x120 Icon 76.png 76x76 Icon 152.png 152x152 but it did not add them to the info.plist . The same warning email was received. I decided to not change anything and wait to see what would happen next. To my utter..

iPhone apps: Can I open an app from a link in a website?

http://stackoverflow.com/questions/2095638/iphone-apps-can-i-open-an-app-from-a-link-in-a-website

If you preload your app with the correct URL scheme you can do this for yours too. Here's a sample URL scheme from the info.plist key CFBundleURLTypes key array dict key CFBundleURLName key string com.standalone.cooltwitterapp string key CFBundleURLSchemes..

Tips for a successful AppStore submission? [closed]

http://stackoverflow.com/questions/28551/tips-for-a-successful-appstore-submission

What I'm a little unsure about are how to configure the Bundle Display Name Bundle Identifier and Bundle Name in info.plist. I understand the first is the text that's shown on the iPhone itself but what about the last Does this have to match Bundle.. but what about the last Does this have to match Bundle Identifier Are there any other things I should add to the info.plist I've noticed that when built for Adhoc distribution my app does not have any author title information in iTunes. iphone..

Entering background on iOS4 to play audio

http://stackoverflow.com/questions/3161635/entering-background-on-ios4-to-play-audio

all you have to do to continue playing the audio that you are currently playing is to just add a key value pair to the info.plist file and wallah it's magic. However this is not the case. For instance if I play an mp3 that is 2 minutes long obviously.. I hit the home button to send my app to the background. The thing is even though I have that key value pair in my info.plist file it pauses the audio and then resumes playing once I switch back to the app. Apple states that all frameworks for audio..

Using the apple FFT and accelerate Framework

http://stackoverflow.com/questions/3398753/using-the-apple-fft-and-accelerate-framework

got the FFT code working for an iPhone project create a new project delete all the files except for main.m and xxx_info.plist going to project settings and search for pch and stop it from trying to load a .pch seeing as we have just deleted it copy.. Carbon is for OSX. delete all the frameworks and add accelerate framework You might also need to remove an entry from info.plist that tells the project to load a xib but I'm 90 sure you don't need to bother with that. NOTE Program outputs to console..

How to check programatically if an App is installed?

http://stackoverflow.com/questions/3512228/how-to-check-programatically-if-an-app-is-installed

uri schemes you could test for that. A URI scheme is for example fb for the facebook app. You can register that in the info.plist of your app. UIApplication canOpenURL url will tell you if a certain url will or will not open. So testing if fb will open..

iPhone: How to Programmatically Respond to SMS Messages

http://stackoverflow.com/questions/387934/iphone-how-to-programmatically-respond-to-sms-messages

set a custom url scheme you must implement both the CFBundleURLSchemes and CFBundleURLName keys in your application's info.plist. In your Application's delegate you can then implement the application handleOpenURL method to get any paramaters that were..

How do I register a custom filetype in iOS

http://stackoverflow.com/questions/4186401/how-do-i-register-a-custom-filetype-in-ios

backup cfbundleidentifier share improve this question I hope it's okay if I dump in that part of my projects info.plist without much further explanation. I think it's pretty much self explanatory. key CFBundleDocumentTypes key array dict key..

“Warning: iPhone apps should include an armv6 architecture” even with build config set

http://stackoverflow.com/questions/4198676/warning-iphone-apps-should-include-an-armv6-architecture-even-with-build-conf

iOS Multi-Tasking Track GPS Location

http://stackoverflow.com/questions/4400628/ios-multi-tasking-track-gps-location

observation and GPS not exclusive GPS. In short from reading those docs add the UIBackgroundModes key into your info.plist which is an array and put the value 'location' into it. You'll then receive CLLocationManager updates even when in the background...

iPhone SDK Internet connection detection

http://stackoverflow.com/questions/596589/iphone-sdk-internet-connection-detection

this question If your application must have network access the easiest way is to add the following settings to your info.plist as boolean values. SBUsesNetwork Ensure the device has an active connection Edit not applicable this seems to be a private..

Version vs build in XCode 4

http://stackoverflow.com/questions/6851660/version-vs-build-in-xcode-4

Phase . Drag and drop the new Run Script phase to move it to just before the Copy Bundle Resources phase when the app info.plist file will be bundled with your app . In the new Run Script phase set Shell bin bash . Copy and paste the following into..

applicationWillTerminate when is it called and when not

http://stackoverflow.com/questions/7818045/applicationwillterminate-when-is-it-called-and-when-not

b. it is called when closing the app from the multi tasking dock and if the app has a sudden terminate flag in info.plist disabled else it is not called. I set the Application should get App Died events and even then on closing the app from the.. function did not get called or Is registering for UIApplicationWillTerminateNotification a better thing to do than the info.plist setting Basically I need to do some work only when the app terminates and NOT when it moves to background. or EDIT 1 When..

Unable to process application info.plist validation at this time due to a general error (1095)

http://stackoverflow.com/questions/8353049/unable-to-process-application-info-plist-validation-at-this-time-due-to-a-genera

to process application info.plist validation at this time due to a general error 1095 I am creating a newsstand application. the application is ready now.. using Application Loader. While uploading the zip file its showing the error message as Unable to process application info.plist validation at this time due to a general error 1095 I googled this in the net but did not find the solution still. iphone..