The opportunity is by your side, and you can catch it with one hand, but if you leave without turning, it will slide from your side, it depends on whether you can grasp every opportunity, whether you can grasp every opportunity for learningIOS TrainingThis is an opportunity you deserve to seize! How can I create a view controller?
I. Create a View Controller
1. Select File> NewFile. Then select CocoaTouchClasses and then UIViewController-subclass. However, be sure to check the option "WithXIBforuserinterface" in the Options area and name it "MeiShiTianDi. Three files have been generated (*. h ,*. m ,*. xib), in the view of the New View Controller (MeiShiTianDi. (xib) add some buttons.
2. Add the Controller attribute of the label bar to lvyouAppDelegate. h -- (the previous step has been completed !)
3. In the lvyouAppDelegate. m file-(BOOL) applicationUIApplication *)
Applicationdidfinishlaunchingwitexceptionsnsdictionary *) in the launchOptions method, create a tag bar controller in code mode, initialize the Controller at the same time, and then place the two controllers you created on the tag controller.
Because it was the first time I shared my knowledge with you, I would like to give you a brief introduction. If you like me, please stay tuned to the Daily News and share with you about iOS training,IOS developmentFor more information, see today!
This article from "Zhang Hao blog" blog, please be sure to keep this source http://7838271.blog.51cto.com/7828271/1298705