Skip to content

Setting Bundle file created to show your iOS project's title in "Setting's option" of your iPhone

Notifications You must be signed in to change notification settings

phynet/SettingBundleiOSProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Use this bundle file to configure your project's version ID, etc. This will be visible in your App Settings.

img_6632

Just drag this folder inside your project and add the code below to App Delegate's didFinishLaunchingWithOptions

iOS 9 update:

If you're not seeing your app's version number or whatever option you've set, you must shut off and on your iPhone. Apple fails...

The string "appVersion" is defined in a .plist file inside Settings file. You can change it for whatever string you like, and add more features, for example to show more info, or actions.

Objective-C:

    - (void)settingAppVersion{
        NSString * appVersionString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
         NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
        [defaults setValue:appVersionString forKey:@"appVersion"];
        [defaults synchronize];
    }

Swift:

    func settingAppVersion() {
        let appVersionString = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String
        let defaults = UserDefaults.standard
        defaults.setValue(appVersionString, forKey: "appVersion")
        defaults.synchronize()
    }

About

Setting Bundle file created to show your iOS project's title in "Setting's option" of your iPhone

Resources

Stars

Watchers

Forks

Packages

No packages published