iOS Development-No. 01-UI Basics-01-Start learning from storyboard

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.