UIViewController Tutorial
33 views | +0 today
Follow
UIViewController Tutorial
UIView Controller Tutorial
Your new post is loading...
Your new post is loading...
Scooped by iphoneuiviewcontroller
Scoop.it!

View Controller Basics

Every view is controlled by only one view controller. When a view is assigned to the view controller’s view property, the view controller owns it. If the view is a subview, it might be controlled by the same view controller or a different view controller. You’ll learn more about how to use multiple view controllers to organize a single view hierarchy when you learn about container view controllers.

 

View controllers, both those provided by iOS and those you define, can be divided into two general categories—content view controllers and container view controllers.

 

Container View Controllers Arrange Content of Other View Controllers. A container view controller contains content owned by other view controllers. These other view controllers are explicitly assigned to the container view controller as its children. A container controller can be both a parent to other controllers and a child of another container. Ultimately, this combination of controllers establishes a view controller hierarchy.

 

A navigation controller presents data that is organized hierarchically and is an instance of the UINavigationController class. The methods of this class provide support for managing a stack-based collection of content view controllers. This stack represents the path taken by the user through the hierarchical data, with the bottom of the stack reflecting the starting point and the top of the stack reflecting the user’s current position in the data.

 

Although a navigation controller’s primary job is to manage its child view controllers, it also manages a few views. Specifically, it manages a navigation bar (that displays information about the user’s current location in the data hierarchy), a button (for navigating back to previous screens), and any custom controls the current view controller needs. You do not directly modify the views owned by the view controller. Instead, you configure the controls that the navigation controller displays by setting properties on each child view controller.

more...
No comment yet.
Scooped by iphoneuiviewcontroller
Scoop.it!

How to Learn iPhone Programming: View Controllers

How to Learn iPhone Programming: View Controllers | UIViewController Tutorial | Scoop.it

UIViewController is a specialized class for managing views.


You will usually create a view controller for each full-screen view in your app.


The view controller will contain all of the IBOutlets and IBAction methods for the view.

more...
No comment yet.
Scooped by iphoneuiviewcontroller
Scoop.it!

About View Controllers

A view controller manages a discrete portion of your app’s user interface. Upon request, it provides a view that can be displayed or interacted with. Often, this view is the root view for a more complex hierarchy of views—buttons, switches, and other user interface elements with existing implementations in iOS. The view controller acts as the central coordinating agent for this view hierarchy, handling exchanges between the views and any relevant controller or data objects.

more...
No comment yet.
Scooped by iphoneuiviewcontroller
Scoop.it!

Beginning iOS Development: Windows, Views, and View Controllers

Beginning iOS Development: Windows, Views, and View Controllers | UIViewController Tutorial | Scoop.it
In this screencast, the fifth installment of the Beginning iOS Development series, you will learn about windows, views, and view controllers.
more...
No comment yet.