When you meet someone else's storyboard, you need a guide chart, but you don't know how to jump.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.