How to use Ios--uipagecontrol details

Source: Internet
Author: User

How to use Ios--uipagecontrol details

Common methods of Uipagecontrol

Uipagecontrol *onepagecontrol = [[Uipagecontrol alloc] init];

Onepagecontrol.frame = CGRectMake (10, 100, 300, 30); Set Location

Onepagecontrol.backgroundcolor = [Uicolor Redcolor]; Set Background color

Onepagecontrol.pageindicatortintcolor = [Uicolor Whitecolor]; The color of unselected points

Onepagecontrol.currentpageindicatortintcolor = [Uicolor Bluecolor]; The color of the selected point

Onepagecontrol.currentpage = 2; Current number of points default 0

Onepagecontrol.hidesforsinglepage = YES; If the page is only 1, the indicator disappears automatically

Onepagecontrol.deferscurrentpagedisplay = NO; When you change the page, the indicator will not change, only when you send a message to Updatecurrentpagedisplay will change the reality, the default is no

Onepagecontrol.numberofpages = 8; Set how many dots are in total, that is, how many pages

[Self.view Addsubview:onepagecontrol]; Add to view

[Onepagecontrol release], Onepagecontrol = nil; Freeing memory

How to use Ios--uipagecontrol details

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.