IOS uses storyboard to pass the value prepareForSegue: sender: Method to jump to the use of multiple page identifier, ios developed storyboard

Source: Internet
Author: User

IOS uses storyboard to pass the value prepareForSegue: sender: Method to jump to the use of multiple page identifier, ios developed storyboard

The use of storyboard is complicated sometimes .... the value passing method is relatively simple .. it is still a headache to use .... but when you understand it, you will gradually become familiar with it... I only take notes without technology ....

Click here to add identifier.

Set the identifier, which is the unique identifier of the page for distinguishing the page. When you trigger the corresponding event,

-(Void) prepareForSegue :( UIStoryboardSegue *) segue sender :( id) The identifier attribute of segue is used in the sender method, and the corresponding NSString is retrieved and then judged ......

Printed result:

Note that this is the identifier for calling the segue, not the method for calling the segue... or else it will crash .....

Related Article

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.