【发布时间】:2014-02-02 15:37:31
【问题描述】:
在 xcode 上创建基于页面的模板并将 UIPageViewController 转换样式更改为 Scroll 后尝试更改点的 UIPageControl 颜色时遇到问题。
这些点没有出现在视图中,我不知道为什么。
我刚刚改变了:
self.pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil];
并且,在 AppDelegate.m (didFinishLaunchingWithOptions) 上:
UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = [UIColor lightGrayColor];
pageControl.currentPageIndicatorTintColor = [UIColor blackColor];
pageControl.backgroundColor = [UIColor whiteColor];
有什么帮助吗?
谢谢。
【问题讨论】:
标签: ios storyboard xcode5 uipageviewcontroller uipagecontrol