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