Reputation: 149
I have a UIPageViewController
set up. There's a black bar that appears under the dot indicators. Is there anyway to remove the black bar? Thanks.
UPDATE:
I have learned that the bar you see by the page indicators is part of the UIPageViewController
. Therefore making it clear, or any color is just changing the color of the page view controller which lays behind whatever view your on now. So if you have an image as a background and you don't want the bar don't use UIPageViewController.
Upvotes: 2
Views: 392
Reputation: 40028
You can use UIAppearance to change the color of UIPageControl
. Otherwise it is not accessible.
UIPageControl *pageControl = [UIPageControl appearance];
pageControl.backgroundColor = [UIColor blueColor];
You can add this code for example in the app's delegate method:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
Upvotes: 2