-1
我想将UIPageViewController
的背页颜色从白色更改为某些图像。我试图从以前的stackoverflow建议实现它但我无法得到如何做到这一点。任何人都可以向我建议我到底需要做什么?如何在UIPageViewController中设置backView颜色
-(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];
}
}
把一些代码。你如何创建pageview – Durgaprasad
- (void)createPages {0} {0} {0} {0} self.pages = [[NSMutableArray alloc] initWithCapacity:6]; CountViewController * controller;你可以使用它来创建你自己的主题,你可以使用它来创建你自己的主题。 (int i = 0; i <6; i ++){ controller = [storyboard instantiateViewControllerWithIdentifier:@“countView”]; controller.pageNumber = [NSNumber numberWithInt:i]; [controller.view setUserInteractionEnabled:YES]; [self.pages addObject:controller]; } } – RashmiG