info.plist

How to get listed in the iOS 8 system wide share menu?

眉间皱痕 提交于 2019-12-06 16:02:18
问题 I'm trying to get my iOS 8 app listed in the iOS 8 system wide share menu for the image extensions .png, .jpg (.jpeg), .gif (static). What do I need to add to the info.plist file? I tried the code below from the iOS docs example but that didn't work, my app isn't showing up in the share list. <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>NSExtensionServiceRoleType</key> <string>NSExtensionServiceRoleTypeEditor</string> </dict> <key>NSExtensionPointIdentifier</key>

Adding a custom font to macOS app using Swift

冷暖自知 提交于 2019-12-06 02:44:35
问题 I followed a bunch of tutorials but it doesn’t work: I simply want to add a custom font to a macOS app. What I tried essentially: Added the .ttf font-files to my project : Target Membership is set and I also made sure that the files are copied using Copy Files within Bundle Phases . After compiling I can see that all files are within the Bundle. So that seems to work perfectly fine. Info.plist : I added Fonts provided by application and created an item for every font-file I want to add

canOpenURL not working in ios 10 [duplicate]

不问归期 提交于 2019-12-06 02:07:53
问题 This question already has answers here : Google Maps URL scheme not working on iOS 9 (2 answers) Closed 3 years ago . The above code is always returning false if {(UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!))} I guess this a problem found in iOS10. I am trying to open google maps app if there in one installed or try to open apple maps so wanted to use canOpenURL . are there any alternatives 回答1: Add this to your Info.plist and then try calling canOpenURL. <key

Limit application capabilities in IOS to only work with Cell/WiFi data.

别等时光非礼了梦想. 提交于 2019-12-05 20:12:37
I have searched all over StackOverFlow but did not find any answer on how to use Required Device Capabilities or UIRequiresPersistentWiFi . How do I set values in my application such that the app only works on cellular data/WiFi in the iPhone? Currently I have set the string WiFi property in the Required Device Capabilities Array according to iOSDeviceCompatibility . Is this the correct approach or should I set UIRequiresPersistentWiFi BOOL to YES ? Based on the documentation, setting this flag only makes sure that the device attempts to open a Wi-Fi connection. I'm not sure that it will

change UIBackgroundModes audio at runtime

别来无恙 提交于 2019-12-05 19:28:01
I have an app that plays music, and I want to enable the background modes. My audio category is set to kAudioSessionCategory_MediaPlayback and if I add the audio string in my UIBackgroundModes inside my info.plist file it keeps playing back the audio. So far so good. Now I want to give this option to my users, to choose if the audio plays in the background or not. I tried getting the file and deleting the key but so far nothing happens. What I did was (in a selector handled by a UIButton) : -(void) disableBackgroundAudio:(UIButton*)button{ NSDictionary *plistDict = [[NSBundle mainBundle]

iPhone App display name

馋奶兔 提交于 2019-12-05 12:30:14
If I have an iPhone app named: MyCoolApp How do I keep the bundle named: MyCoolApp.app But have the app name on that shows up underneath my icon read: My Cool App I have changed my PRODUCT_NAME target setting to be "My Cool App" and changed my plist CFBundleDisplayName and CFBundleName to be "MyCoolApp". So far my app name on the device still reads "My Cool App" I'm pretty green to this stuff still. Thanks for any help you can provide. Sometimes when changing the Project Properties it does not work. Project Properties and Target Properties Window look the same. I have mistaken there sooo many

OSX Custom extension icon Association

牧云@^-^@ 提交于 2019-12-05 12:05:51
I'm trying to get my application to display an icon for a custom file extension using the following code: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>My Custom Extension</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSItemContentTypes</key> <array> <string>com.myapp.myext</string> </array> <key>LSHandlerRank</key> <string>Owner</string> <key>NSExportableTypes</key> <array> <string>com.myapp.myext</string> </array> </dict> </array> <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeIconFile</key> <string>Myicon.icns<

NSLocationWhenInUseUsageDescription warning but i have already added it

痞子三分冷 提交于 2019-12-05 11:30:37
问题 While i have already added NSLocationWhenInUseUsageDescription I keep receiving this warning This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data FYI: I have multiple info.Plist in the app. Not sure what to do? 回答1: Adding both NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription keys

Can I programmatically flip Info.plist values while my application is running?

左心房为你撑大大i 提交于 2019-12-05 10:45:49
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. I know you can get your info.plist as an NSDictionary via NSBundle with the following: NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; from there

App store name and info.plist

自作多情 提交于 2019-12-05 04:16:41
I've just completed my first app and having tested I'm ready for submission. However, despite numerous web searches and reading, I'm struggling to finalise the method required to enable me to have a different name on the app store to the name that appears under the app on the device home screen. In the info.plist file there is reference to bundle display name, executable name, bundle name, bundle identifier, product name etc. So, for example, say I would like the app store name to display as: HELLO WORLD and I would like the name below the icon on the device home screen to display as: HELLO