【发布时间】:2014-02-20 17:05:37
【问题描述】:
当PageViewController 导航样式设置为Horizontal 时,我可以让UIPageControl 工作,但是当我选择Vertical 时,UIPageControl 不会显示为水平或垂直。
我正在 AppDelegate 中设置 UIPageControl 的外观:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = [UIColor lightGrayColor];
pageControl.currentPageIndicatorTintColor = [UIColor blackColor];
pageControl.backgroundColor = [UIColor whiteColor];
return YES;
}
有没有办法让它出现在垂直位置?上面的代码在选择Horizontal 选项进行导航时有效,但在选择Vertical 时无效。
【问题讨论】:
标签: ios7 uipageviewcontroller appdelegate uipagecontrol