Home > Web Front-end > HTML Tutorial > ios page jump_html/css_WEB-ITnose

ios page jump_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:45:14
Original
1413 people have browsed it

1. When using storyboard

1. Create it directly in the storyboard and arrow Navigation Conroller and connect it

2. Use Segue to jump

Shrink the interface (you can double-click in the blank space, or right-click to select the zoom ratio). This time we do not use the "buttons" to connect the interface directly, but to connect the interfaces, as shown in the figure below. Display:

Note: 100% zoom does not allow connections between interfaces! " This line", specify an identifier in the Identifier of the Storyboard Segue, which we will use later:

At this time we need to add an event for the button, and for this we need to display the Storyboard at the same time and .m files, the operation is as follows:

The operation of creating an event is the same as the previous connection operation:

Create a name for this event , and then click Connect:

Add the following code in the event and pass in the newly connected Identifier. The sender is usually "self":

In this way, you can jump successfully.

[self performSegueWithIdentifier:@"EasyCode" sender:self];
Copy after login
2. When storyboard is not used

1. On the basis of navigationController as rootViewController,

2. Not tested

  [self.navigationController pushViewController:self.newOrderViewController animated:YES];}
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template