Basic ios control and ios Control

Source: Internet
Author: User
Tags uicontrol

Basic ios control and ios Control

1. UIButton

The UIButton class is a subclass of UIControl, which implements buttons on the touch screen. When you touch a button to intercept events and action messages to the target object, it mines them. The set goals and action methods are inherited from UIControl. This class provides methods to set the title, image, button, and other appearance attributes. By using the set method, you can specify a different appearance as the status of each button.

2. UIAlertControllor

Pop-up prompt box. Currently, books on the market, including some materials on the Internet, are still in the era before iOS8. the pop-up box at that time is a thing called UIAlertView, but now, in the era of XCode7 and iOS9, you will find this thing abandoned. Since iOS 8, Apple abolished UIAlertView and switched to UIAlertController to control the prompt box.

3. UISegmentedControl

  The segment control is a column of buttons integrated into a row. It's easy, just like a Button.

4. UISwitch

  Button Control, which enables the flight mode on the mobile phone. With Storyboard, you can quickly and conveniently establish a connection. Do not forget to associate it.

5. UISlider

  The Selection Control of the progress bar type, corresponding to the value, you can set the volume and other operations, according to the official documentation can see a lot of settings about it, the basic implementation is the same as above.

6. UIPageControl

7. UITextField

Take a look at this Website: Workshop.

8. UIDatePicker

Date Selection control.

9. UIScrollView

Implement window scrolling.

10. UITextView

  Rich text editing box.

11. UIToolBar

12. UIPickerView

It is similar to the previous time, but you can choose the content on your own.

13. UITbleView

  Table settings control.

14. UICollectionView

15. UIViewContriller

View controllers play an important role in the most important MVC pattern in our development. As the schedulers of display and data, its existence determines how our programs are presented to users.

16. UINavigationController

A very important thing. Navigation View Controller. To put it simply, it is a stack for storing views. In principle, it comes out first and manages the views in it layer by layer. In the process of learning it, you should also master the UINavigationBar, UINavigationitem and other controls, and be familiar with several pop and push methods.

17. UITabbarController

  Unlike the top navigation of UINavigationController, UITabbarController is the bottom navigation, which has similar functions. You can directly switch multiple views. There are many typical applications. QQ is the same, and the implementation is similar to the above UINavigationController.

 

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.