Start of IOS Learning

Source: Internet
Author: User

Start of IOS Learning
Some basic knowledge of IOS is object-oriented. IOS is an object-oriented process. images are image objects (UIimage objects). text is a text object (UItextField object) A button is a button object (UIbutton object). UIimage, UItextField, and UIbutton all belong to the UIview subcontrol and the parent control. If the parent control does not exist, the Child control does not exist, and vice versa. UIviewcontrol is the butler, and its responsibility is that the arrow position is the UI of the program entry is the basis, and the network is the focus. jason/xml is the first small project, and the subtraction calculator is designed with two text controls, there are three label controls. The difference between a button control Text and a label is that text can input numbers on the running interface, label is a fixed text or number. To listen to button click events, you need to use the IBAction function. in the H file. implementation in m: Declaration:-(IBAction) count; implementation:-(IBAction) count {NSlog (@ "I saw an angel, his name is mama "); // print the I saw an angel, his name is mama to determine whether the click event is successful} to listen to the button click event, you need to connect the button control of mainstoryboard to achieve the I saw output after clicking the button. an angel, his name is mama

Related Article

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.