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