IOS-iOS development overview, MainStoryboard, UIButton

Source: Internet
Author: User

 

 

 

A.

 

B.

A. We can run the interface first. When looking for a file that can affect the interface, we can guess that the file can change the interface.

B. Find the target file, drag the control at will, and run the program to see the interface changes.

C. the control position remains unchanged, because the current simulator is a 3 GS, 3.5 inch screen, and stroyBoard is 4 inch, and the position is incorrect. Solution: Modify the 3.5 inch option on the stroyBoard interface, adjust the control location, and run the command.

 

C.

Press CMD to go in.

D.

  

 

  

G. You need to adjust the properties of the control to bring the control to the most beautiful effect and display it on the right.

UIView: a container that can be seen and touched.

UIViewController: control interface. An interface is managed by a controller. Each controller has a view.

 

  

A. Set the return value of the method to IBAction, which is equivalent to void. It is used to associate the button click event in storyboard. The event listening button does not need to return any value. You only need to do something when you click the button.

B. Association: the connection between the Controller and stroyBoard

C. Note that to control the controls in the stroyBoard, you must associate them with methods or attributes in the controller. Method: Use the IBAction attribute to associate with IBOutlet. Use the control key.

D. The stroyBoard has an arrow representing the program entry.

E. If there are multiple stroyboards in the program, how can I determine which stroyBoard the program runs? In the program configuration file, check which stroyBoard is displayed in the main stroyboard.

F. bar button items cannot be displayed independently. They must be placed in the toolbar or navigation bar to be displayed. If a bar button item is inserted incorrectly, a bottom bar is automatically generated and can be removed from the attribute interface.

Bounds is used to set the size and the position is invalid.

Center is used to set the location

 

  


 
-*** Click the mark listening button-(* text1 = * text2 = i1 = i2 = [NSString stringWithFormat:, i1 +

 

 

 

Clear Saup

 

 

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.