Sunday, January 12, 2014

ios the controller problem

In ios, we see there are a lot of controller, for example uiviewcontroller, uitablecontroller, UItabBarController so, I want to know controller is not that a controller, you can add other controls inside addsubview method in this controller, then the controller itself can not be added to other controllers, and so on through a number of methods add controls inside of? The controller is a management role in it? Night said controller is a photo frame, which can add photos, then this picture frames can be placed on a desk or needs inside the house so it? ,
Reply:
Three main attributes

• view: The root view controller manages
• title: the title of the navigation bar controller
• wantsFullScreenLayout: the need for full-screen display
• interfaceOrientation: Interface direction
• navigationItem: navigation children
• editing: whether to process the edit mode
• hidesBottomBarWhenPushed: When the stack hide the bottom bar
• toolbarItems: Toolbars sub-item set


• tabBarItem: tab bar children

• editButtonItem: Return an edit button
• parentViewController: Exchange View-Controller
• searchDisplayController: search display controller
• splitViewController: split view controller
• modalViewController: mode controller
• navigationController: navigation controller
• tabBarController: tag controller
Reply:
The above is uiViewController attribute this uiviewcontroller is not very important position? , Can not give an explanation? ,
Reply:
Ios seems you are just getting started, and this is very important uiviewcontroller course, I suggest you go to make a hello world to understand, to understand these things on every minute.
Reply:
reference to the third floor pearlhuzhu reply:
ios seems you are just getting started, and this uiviewcontroller of course very important, and I suggest you go on to be a hello world Understand, understand these things on every minute.
I was able to appreciate its importance, but for many nouns ios very confused inside it, UIViewController is not a lot one or only one? UIViewController can not control uitableviewcontroller, etc. What is the relationship between the individual controller or that there is no link between them? uitableview is uiview subclass, it is not possible to define uiview many months? controller control view is how to control it? I was messing up the term relationship between them, seeking answers,
Reply:
controller is a controller that is in MVC C
view is a view is in MVC V

UIViewController with UIView subclasses are UIResponse. . Both of the same level (do not know can not say)

controller is not directly addSubview only view to addSubview.

He is the view of the manager.

Others are a lot of Controller and view and UIView subclass of UIViewController.

Many of these online chart you can look


Reply:
references, 5th Floor yang8456211 reply:
controller is a controller that is in MVC C
view is a view is in MVC V

UIViewController with UIView subclasses are UIResponse. . Both of the same level (do not know can not say)

controller is not directly addSubview only view to addSubview.

He is the view of the manager.

Others are a lot of Controller and view and UIView subclass of UIViewController.

Many of these online chart you can look
praise, all 5,

No comments:

Post a Comment