IOS Uipagecontrol (Paging Controller) Usage Summary

Source: Internet
Author: User


Uipagecontroll is an iOS system UI control that inherits from Uicontrol and can provide developers with the ability to design paging effects.

Initialize method

Uipagecontrol * page = [[Uipagecontrol alloc]initwithframe:cgrectmake (100, 100, 100, 100)];

Set Number of controller pages (default = 0)

@property (nonatomic) Nsinteger numberofpages;

Set the page number that is currently located

@property (nonatomic) Nsinteger currentpage;

Sets whether the controller is automatically hidden when the total number of pages is 1 o'clock

@property (nonatomic) BOOL hidesforsinglepage;

Sets whether to defer automatic updating of the current page number of the controller (default is NO)

@property (nonatomic) BOOL deferscurrentpagedisplay;

Note: This property, if set to Yes, does not change the current page point displayed by the controller and must be manually called

-(void) updatecurrentpagedisplay;

This method is not updated.

Update Controller Current page number

-(void) updatecurrentpagedisplay;

Get controller size by page count

-(Cgsize) Sizefornumberofpages: (Nsinteger) PageCount;

This property is used to dynamically handle the size of the page as it changes.

Set the Controller page point color

@property (Nonatomic,retain) Uicolor *pageindicatortintcolor;

Sets the color of the page point where the controller is currently located

@property (Nonatomic,retain) Uicolor *currentpageindicatortintcolor;

Learn to use welcome reprint

IOS Uipagecontrol (Paging Controller) Usage Summary

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.