Uipagecontrol (Page controller, which is the small dots on the desktop, each point represents an interface)
the parent class is Uicontrol.
iOS development commonly used in the basic controls, mainly with the Uiscrollview, the more commonly used is that some of the app's main page will have some pictures automatically converted, but also can be used for human conversion , this article is mainly to list the commonly used properties and methods (note Xcode version 7.2)
The properties are as follows:
@property (nonatomic) Nsinteger numberofpages; //Total pages, default 0 pages
@property (nonatomic) Nsinteger currentpage; //Current page, default is 0, value range is 0-Total page minus 1
@property (nonatomic) BOOL hidesforsinglepage; Sets whether the controller is automatically hidden when the total number of pages is 1 o'clock, the default is no
@property (nonatomic) BOOL deferscurrentpagedisplay; I set whether to defer automatic update of the current page number of the controller (default is NO)
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.
@property (Nullable, Nonatomic,strong) Uicolor *pageindicatortintcolor Set the color of the controller page point
@property (nullable, nonatomic,strong) Uicolor *currentpageindicatortintcolor// Sets the color of the current page point of the controller, which must be 6.0 before it can be called
Method:
-(void) updatecurrentpagedisplay; // Update Controller Current page number
-(cgsize) sizefornumberofpages: ( Nsinteger ) PageCount; //through the number of pages to get the controller size, mainly for the number of changes in the case of dynamic processing of size
This article is from the "Red Corner Antelope" blog, please be sure to keep this source http://2254359459.blog.51cto.com/10776102/1745447
The Uipagecontrol of ios-oc-basic control