First, this is the case in the APPDELEDATE.M file.
{Self.window=[[UIWindow Alloc]initwithframe:[uiscreen mainscreen].bounds]; Self.window.backgroundColor=[Uicolor Whitecolor]; [Self.window makekeyandvisible]; if(! [[Nsuserdefaults Standarduserdefaults] Boolforkey:@"Firstlaunch"]) {[[Nsuserdefaults standarduserdefaults]setbool:yes Forkey:@"Firstlaunch"]; //NSLog (@ "first start"); //If this is the first time, use Userguideviewcontroller (User Guide page) as the root viewUserguideviewcontroller *userviewcontroller=[[Userguideviewcontroller alloc]init]; Self.window.rootViewController=Userviewcontroller; }Else{NSLog (@"not the first time ."); [Self showhomeviewcontroller]; }//Jump to main- (void) showhomeviewcontroller{[[UIApplication Sharedapplication]setstatusbarhidden:no]; Uistoryboard*storyboard = [Uistoryboard storyboardwithname:@"Main"Bundle:nil]; Self.window.rootViewController=[StoryBoard Instantiateinitialviewcontroller];}
And then if you are the first time utility
In your
In the userguideviewcontroller.m file
// trigger time of the button -(void) firstpressed{// jump to Body [[uiapplication Sharedapplication]setstatusbarhidden:no]; *storyboard = [uistoryboard storyboardwithname:@ "Main" Bundle:nil]; [Self presentviewcontroller:[storyboard Instantiateinitialviewcontroller] animated:yes completion:nil];}
When you meet someone else's storyboard, you need a guide chart, but you don't know how to jump.