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];

你可能感兴趣的:(page)