我想将 的背页颜色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];
}
}