Preface:
Beginner iOS programming, I would like to use this series of blog to record their own learning iOS development of the drip, and to communicate with everyone. This is also the first time to write a blog, write bad or wrong place, Welcome to the way the great God pointed out, in this first thanked ~ Note: Because they have just begun to learn, the previous few estimates of the code amount, but also just posted part of the code, As an entry point of knowledge.
---------------------Nsryan on May 10, 2016 note
1, Uiviewcontroller
Whenever a new interface is displayed, a new Uiviewcontroller object is created first, and then a corresponding full-screen Uiview,uiviewcontroller is created to manage the UIView;
Uiviewcontroller is UIView's big housekeeper, responsible for creating, displaying, destroying uiview, responsible for monitoring the internal events of UIView, responsible for handling uiview and user interaction;
Uiviewcontroller has a UIView attribute inside it, which is the UIView object that it manages:
@property (nonatomic, retain) UIView *view;
2, Ibaction & Iboutlet
Ib:interface Builder interface setup;
Ibaction: Requires action, such as a button click;
Iboutlet: The attribute needs to be obtained and modified;
You can establish a connection with storyboard, but note: In general, do not use storyboard to create controls with code.
3. App Development Steps
1> build the interface, the look of the application
2> Connection: In the View controller
3> writing programs to implement functions
4. Turn off the keyboard
5. Private extension
Write the attribute in the Viewcontroller.m file, the method can not write, write directly in the back and connect.
6. Domain name and reverse domain name
Domain name: itcast.cn, baidu.com
A domain name is typically used to uniquely indicate a host: www.baidu.com
Reverse domain name: typically used to uniquely represent a product: Cn.itcast.weibo
Bundle Identifier: Reverse Domain name + product Name
Chinese is not supported (need to be modified before listing), but does not affect development!
7. Mobile controls
8. Magic Number (View.tag)
iOS Development-No. 01-UI Basics-01-Start learning from storyboard