Ios7.0 combined with storyborad to achieve page Jump summary, ios7.0storyborad
After a whole day of hard work, This article summarizes the ios7.0 page Jump-related content.
Stored rule
I am very late with ios, and the Environment is already xcode5 + ios7, so I am not familiar with the previous IOS development mode. I checked a lot of information on the Internet and found that many of the previous Code requires coding to create ViewController. For example:
Objc code
- WTwoViewController * controller = [[WTwoViewController alloc] initWithNibName: @ "WTwoViewController" bundle: nil];
- [Self presentViewController: controller animated: YES completion: nil];
However, if you use the storyboard to manage the view controller, the storyboard will automatically process the initialization action of the view controller, So you no longer need to create your own coding instance for the view controller. See this sentence in another blog:
"I believe many people who have used xib will often use the-presentModalViewController: animated: And-pushViewController: animated: methods. This kind of code will become a history in storyboard; it will be replaced by a Segue"
Control-based jump
With storyboard for development, you often need to pull lines. This article does not introduce them. Please refer to this official document:
Start developing iOS app today
The pulling line is pulled from the button to the view controller:
In this way, you only need to click this button to automatically jump to the page without writing any code.
Directly from the controller to the controller, this type of tension is directly from the View Controller to the View Controller: This method has already been created in advance, but also needs to be manually encoded, first, you need to set an identity for the segue and then write code to jump to: Objc code
- // Jump to bootstrap
- -(Void) jumpToBootstrap {
- [Self authentication mseguewithidentifier: @ "fromWelcomeToBootstrap" sender: self];
- }
This code must be written in-viewDidAppear and cannot be written in-viewDidLoad. Otherwise, an error will be reported: whose view is not in window hierarchy! When you use the-presentModalViewController: animated: Method to redirect between pages, you generally need to use delegate or other methods to transfer the value. Now, you can use the segue API to complete the process before the segger occurs, the current View Controller-prepareforseue: sender: method will be called first, and some processing can be done in it, such as: Objc code
- BootstrapViewController * targetController = [segue destinationViewController]; // get the target view controller, and then you can get everything you want.
However, it seems that you cannot set the view of the destination view controller in the prepareForSegue method, because the view has not been instantiated by the storyboard. However, you can first pass the parameter, and then set it later. In addition, many posts on the Internet said that if you need to pass the value back from B to A, you can set A to B's delegate: Objc code.
- BViewController. delegate = self;
I don't quite understand it here. When I return from B to A, it seems that it is quite special to set A segue. It is to set an action first in the target View Controller, drag the source View Controller to the exit icon. In this case, the action of the target View Controller will also be called in addition to calling the source prepareForSegue method.
How can I solve an error when I upgrade my iphone to the ios70 initial Page?
Normal operation. Question screen. I help you with this.
Method 2: update and upgrade using iTunes on PC
Advantage: Data Update
Disadvantage: the upgrade time is slow.
Operation Method:
1. Data lines connect your iOS device to your computer (if you are a desktop user, we recommend using a USB Plug-in behind the chassis)
2. Open iTunes
Window user, please press the Shift key on the keyboard, and then click the [Check for updates] button
For Mac users, hold down the Option key on the keyboard and click check for updates.
3. Select the firmware of the official version of iOS 7 that has been downloaded before.
4. A pop-up window is displayed, "iTunes will update the iPhone to iOS 7.0, and verify the update with Apple". Click the "Update" button.
5. Please wait for a while. Do not change the data line during this process to ensure normal connection.
6. After the upgrade is successful, the iPhone will automatically start up.
Method 3: use iTunes on the PC to resume the upgrade
Advantage: it is suitable for jailbreaking users to directly upgrade to iOS7, And the upgrade speed is relatively fast.
Disadvantage: The data cannot be updated. After the upgrade, all the data in the device will be erased. You need to restore the data backed up on your own.
Operation Method:
1. Data lines connect your iOS device to your computer (if you are a desktop user, we recommend using a USB Plug-in behind the chassis)
2. Open iTunes
Window user, please press the Shift key on the keyboard, and then click the restore button
For Mac users, press and hold the Option key on the keyboard, and then click Restore.
3. Select the firmware of the official version of iOS 7 that has been downloaded before.
4. A pop-up prompt is displayed, "iTunes will erase the iPhone and restore it to iOS 7.0, and verify the restoration with Apple". Click the restore button.
5. Please wait for a while. Do not change the data line during this process to ensure normal connection.
6. After the upgrade is successful, the iPhone will automatically start up.
Ios706 download prompt: What is this page?
You cannot understand this. In English, you can check and upgrade your system files. The SSL connection verification is .... to be accurate, it is SSL security authentication, that is, converting normal "http" (unencrypted) transmission to "https" encrypted transmission. Baidu will know about the viree SSL encrypted certificate, you 'd better not upgrade your mobile phone directly. Otherwise, an error may be prompted during jailbreak. You 'd better use ITUNES to restore the factory settings directly, click Download and install, and click and install.