UIPageControl 属性

//分页控制器UIPageControl
    self.page=[[UIPageControl alloc]initWithFrame:CGRectMake(50, 100, 200, 50)];
    self.page.backgroundColor=[UIColor grayColor];
    self.page.numberOfPages=5;//设置页数
    [self addSubview:self.page];

原文地址:https://www.cnblogs.com/-ios/p/4672770.html