我想将UIPageViewController
的背页颜色从白色更改为某些图像。我曾尝试从之前的stackoverflow建议中实现它但我无法知道如何做到这一点。任何人都可以向我建议我到底需要做什么?
-(void) createPages{
self.pages = [[NSMutableArray alloc]initWithCapacity:6];
CountViewController *controller;
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:[NSBundle mainBundle]];
for (int i = 0; i < 6; i++) { controller = [storyboard instantiateViewControllerWithIdentifier:@"countView"];
controller.pageNumber = [NSNumber numberWithInt:i];
[controller.view setUserInteractionEnabled:YES];
[self.pages addObject:controller];
}
}
答案 0 :(得分:1)
您正在看到窗口背景颜色。您应该设置窗口背景颜色:
appDelegate.window.backgroundColor = [UIColor blackColor];