After further study and search, I found a solution , also on stackoverflow.
The key is the following message to send to the UIPageControl user element:
[self.view bringSubviewToFront:self.pageControl]
The AppCoda tutorial is the basis for this solution :
Add a UIPageControl element on top of the RootViewController , the arrow view controller.
Create an associated IBOutlet in ViewController.m .
In the viewDidLoad method viewDidLoad you should add the following code as the last method that you call after adding all the subzones.
[self.view bringSubviewToFront:self.pageControl]
To assign the current page based on pageIndex of the current content view, you can add the following UIPageViewControllerDataSource methods:
- (UIPageViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerBeforeViewController:(UIViewController *)viewController { // ... index--; [self.pageControl setCurrentPage:index]; return [self viewControllerAtIndex:index]; } - (UIPageViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController { // ... index++; [self.pageControl setCurrentPage:index]; // ... return [self viewControllerAtIndex:index]; }
sn3ek Jan 10 '14 at 15:50 2014-01-10 15:50
source share