//分页控制器UIPageControl
self.page=[[UIPageControl alloc]initWithFrame:CGRectMake(50, 100, 200, 50)];
self.page.backgroundColor=[UIColor grayColor];
self.page.numberOfPages=5;//设置页数
[self addSubview:self.page];
时间: 2024-11-03 22:26:44
//分页控制器UIPageControl
self.page=[[UIPageControl alloc]initWithFrame:CGRectMake(50, 100, 200, 50)];
self.page.backgroundColor=[UIColor grayColor];
self.page.numberOfPages=5;//设置页数
[self addSubview:self.page];