code example:
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) launchoptions{Self.window=[[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]; NSString*key =@"cfbundleversion"; //Remove the version number of the last-used software stored in the sandboxNsuserdefaults *defaults =[Nsuserdefaults Standarduserdefaults]; NSString*lastversion =[Defaults Stringforkey:key]; //get the version number of the current softwareNSString *currentversion =[NSBundle Mainbundle].infodictionary[key]; if([CurrentVersion isequaltostring:lastversion]) {//Show status barApplication.statusbarhidden =NO; Self.window.rootViewController=[[Cctvtabbarviewcontroller alloc] init]; } Else{//New versionSelf.window.rootViewController =[[Cctvnewfeatureviewcontroller alloc] init]; //Store new version[Defaults setobject:currentversion Forkey:key]; [Defaults synchronize]; } [Self.window makekeyandvisible]; returnYES;}
New features for app version