Its rare, but sometimes you would like to use a push segue controlled by a navigation controller but also hide the “back” button on the navigation bar of the destination view controller.
This tutorial will show you a simple example of how to use a UIWebView. The UIWebView is used to display content that is requested from a web URL. There are many uses for the UIWebView, but all you have to know is that if you need to display content from a web page, you use a UIWebView.
The application that we will build is simple — it has two view controllers. The first view controller has a button that when pressed will transition to a second view controller that will use a UIWebView to display content from a web page. We are also going to use an activity indicator to tell the user that the web view is loading. Simple.
This tutorial will show you a simple example of how to use a UIPickerView. The UIPickerView is used to display a list of options to a user to select by rotating a selection wheel. This is a simple way to add some interactivity to your application. There are many uses for the UIPickerView, so this example will show you the general concept and how to implement a basic picker view that you can customize to your liking. Let’s get started!
Learn how to allow users to signup for an account (capturing whatever information you would like, though we will use email, username, and password). Then, allow registered users to login via a user authentication process…
If you create a segue for every “return” transition that you need, you will create a new instance of the view controller that you are transitioning to every time the segue is initiated. This will continue to use up memory and possibly be terminated by the operating system.
The better practice is to “unwind” your segues. You can do this in a few simple steps.
Let’s say that you have a segue from Controller 1 to Controller 2. How do you get back to Controller 1? This tutorial will teach you how.
This tutorial will teach you how to use the Storyboard Interface Builder to transition between two views when one of the views recognizes a swipe gesture. If you don’t need any added functionality beyond transitioning between the two view, UISwipeGestureRecognizer is really easy to use with Storyboards in Xcode5, with no code.
Let’s assume that you have two view controllers. When you swipe the first view to the left, the view from the second view controller appears. This is all handled by the UISwipeGestureRecognizer and the Storyboard UI Builder (unless you need to extend the functionality further).
Usually you perform a segue when an event occurs, like the action of a button tap or trigger control. However, sometimes you need the flexibility to be able to trigger a segue in your code without needing to attach it to a UI event.
You can do this by calling performSegueWithIdentifier in your code – this tutorial will show you how.
It is common to use a UISwitch control for application settings that should be saved as user-defaults. One of the easiest ways to save the state of the switch, in order to restore that state when the application reopens, is to use NSUserDefaults.
This tutorial is meant to teach you how to save the state of a UISwitch to user defaults, and then retrieve that state to use elsewhere in the application.