您的位置:首页 > 产品设计 > UI/UE

UIPageControll - 图片格式

2016-01-19 16:13 309 查看
设置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"];


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: