Tag:version version number program
//Boot page //Determine whether it is the first time to open, if it is the first time to open, then display the Guide page, or directly into the program //version NSString *key = (nsstring *) kcfbundleversionkey; //new version number nsstring *version = [nsbundle mainbundle]. infodictionary[key]; //old version number nsstring *oldversion = [[nsuserdefaults standarduserdefaults]valueforkey:@ "Firstlanch"]; if ([ Version isequaltostring:oldversion]) { [self startapp]; } else { PreViewController *vc = [PreViewController new]; self.window.rootViewController = vc; [vc&nBsp;setcallback:^{ [self startapp] ; [[nsuserdefaults standarduserdefaults]setvalue:version forkey:@ "Firstlanch"]; [[NSUserDefaults standardUserDefaults]synchronize]; }]; }
This article from the "Network Learning Summary" blog, declined reprint!
iOS version update decision (to load the boot page)