
设置pageCon的显示风格:
- 1. 颜色
page.pageIndicatorTintColor = [UIColor redColor];
page.currentPageIndicatorTintColor = [UIColor greenColor];
- 2. 平铺图片
page.currentPageIndicatorTintColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"dot_selected"]];
page.pageIndicatorTintColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"dot_normal"]];
- 3. 修改属性
[page setValue:[UIImage imageNamed:@"compose_keyboard_dot_normal"] forKeyPath:@"pageImage"];
[page setValue:[UIImage imageNamed:@"compose_keyboard_dot_selected"] forKeyPath:@"currentPageImage"];