【发布时间】:2014-04-09 14:24:52
【问题描述】:
在 UIViewController 中,我将 UIPageController 设置为子控制器。
UIPageController 在屏幕底部正确显示页面控制面板。
我的问题是我想将图像放在 UIPageController 中的页面控件上方,为此我想获取页面控制面板的大小。
如何获取页面控制面板的大小?
我试图在 DiceTownAppDelegate 中调整它的大小,但大小没有改变(虽然改变颜色有效):
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = [UIColor lightGrayColor];
pageControl.currentPageIndicatorTintColor = [UIColor blackColor];
pageControl.frame = CGRectMake(0, 0, kScreenWidth, kPageControlHeight);
pageControl.backgroundColor = [UIColor whiteColor];
return YES;
}
【问题讨论】:
标签: ios objective-c uipagecontrol