info.plist

How to show status bar initially hidden from plist iphone

冷暖自知 提交于 2020-01-23 06:29:08
问题 i want to hide the status bar when i launch my app to view launch image that was covered by status bar. so in plist i added Status bar is initially hidden YES and status bar is covered. My problem is that status bar is covered always in my app, i want to hide status bar only for launch image, what can i do? 回答1: [[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO]; 回答2: SOLVED [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO]; using this at launch of

How to show status bar initially hidden from plist iphone

北城以北 提交于 2020-01-23 06:29:07
问题 i want to hide the status bar when i launch my app to view launch image that was covered by status bar. so in plist i added Status bar is initially hidden YES and status bar is covered. My problem is that status bar is covered always in my app, i want to hide status bar only for launch image, what can i do? 回答1: [[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO]; 回答2: SOLVED [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO]; using this at launch of

Mac OS X file association works, but file icon not changed

。_饼干妹妹 提交于 2020-01-23 05:44:09
问题 I have developed a Mac application using Qt 5.3.2. This application handles files with specific extension (lets say .xyz ). I have created an icon file named XYZ.icns and added it to my app bundle Resource folder ( MyApp.app/Contents/Resources/XYZ.icns ). I have also modified the bundle's Info.plist file in order to set the file association. I have added this entry: <key>CFBundleDocumentTypes</key> <array> <!-- Registered file accociation --> <dict> <key>CFBundleTypeRole</key> <string>Editor<

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

大憨熊 提交于 2020-01-13 10:03:11
问题 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? 回答1: 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. 回答2: I know you can get your info.plist as an NSDictionary

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

徘徊边缘 提交于 2020-01-13 10:02:53
问题 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? 回答1: 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. 回答2: I know you can get your info.plist as an NSDictionary

Force keeping app window on top - Mac OS X

谁说我不能喝 提交于 2020-01-13 08:42:07
问题 Earlier i used Afloat for this but now it seems to be dead... Is there any alive software or any simple "handy" way to force keeping app window on top over others (including fullscreen apps) I can imagine this can be done with adding something to plist files inside .app like <!-- Info.plist --> <key>LSUIElement</key> <true /> for showing app over any fullscreen app (with keystroke) Google didn't help me much ( 回答1: Set the level of your mainWindow as [_window setLevel:NSModalPanelWindowLevel]

How to stop Xcode 11 from changing CFBundleVersion and CFBundleShortVersionString to $(CURRENT_PROJECT_VERSION) and $(MARKETING_VERSION)?

♀尐吖头ヾ 提交于 2020-01-12 03:35:27
问题 Since version 11, Xcode sets my CFBundleVersion value to $(CURRENT_PROJECT_VERSION) and my CFBundleShortVersionString to value $(MARKETING_VERSION) whenever I enter Version or Build values in the target settings (tab "General"). The actual version and build values that I enter are now stored in the project.pbxproj file. I do not want or like this behaviour, as I use shell scripts to modify the values at buildtime. I can manually set the correct values in the Info.plist file, but as soon as I

iOS app validation error: Missing plist key CFBundleShortVersionString

£可爱£侵袭症+ 提交于 2020-01-11 08:54:18
问题 I built an iOS game with SpriteBuilder and cocos2d. When I attempt to submit it to the AppStore, I get the following error: ERROR ITMS-9000: "Missing plist key. The Info.plist file is missing the required key: CFBundleShortVersionString." How do I fix this? Thanks! 回答1: This is an easy fix. You just need to add the CFBundleShortVersionString key to your Info.plist file. Click your Info.plist file in your project. Right click and select "Add Row". Then paste in the string

Mac app is still running after deleting Info.plist

冷暖自知 提交于 2020-01-06 14:45:28
问题 I want to build a Mac App from scratch. I manually created the required folders of main app, Contents, MacOS, Resources, and dropped the binaries. The only one I don't know how to create from scratch is "Info.plist". So, I just copied one from the installed Applications on my machine, removed all the unfamiliar keys, except the Executable and Package type (as APP). Then I did a test. Before I copied and editted the Info.plist file, I double-clicked the app icon in Finder. Not working, which

Splash in ios app

回眸只為那壹抹淺笑 提交于 2020-01-06 03:44:05
问题 I'm working on old project without constraints and this splash images. Default-568h@2x.png 640 x 1136 Default.png 320 x 480 Default@2x.png 640 x 960 not have Images.xcassets catalog and not have configured this splash in .plist like THIS POST. All this causes me big impression, because I had never seen anything like it. Investigating all that, I realized that i had to do anything to make it work, it is only necessary to have the splash with these specific names and it works throughout the