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