0

what the bug looks like I'm having this weird action when I use the following code to display those little dots in UIPageViewController. How can I fix it? Is this a swift bug or I'm doing something wrong?

func presentationCountForPageViewController(pageViewController: UIPageViewController) -> Int {
    return numOfImages
}

func presentationIndexForPageViewController(pageViewController: UIPageViewController) -> Int {
    return currentIndex
}
AlexBains
  • 295
  • 6
  • 14
  • Definitely this is not iOS problem, you are doing something wrong. Be specific about your problem. – Rajath Shetty K Jul 10 '16 at 05:48
  • @RajathShettyK just like the image shows, when the user push a button, a page view controller is showed (they are embedded in a navigation view controller if that matters), the bar at the bottom only changed half of its color during the animation. After the animation, the color changed to black like it should be. – AlexBains Jul 10 '16 at 05:55
  • Sorry I couldn't get understand bug from picture.for me only weird things is background colours not aligned – Ali Kıran Jul 10 '16 at 05:58
  • @AlexBains is this screenshot taken, when push is in progress? – Rajath Shetty K Jul 10 '16 at 06:00
  • @RajathShettyK yes, it is – AlexBains Jul 10 '16 at 06:01
  • @AlexBains You can try removing navigation view controller. But it is just a guess. – Rajath Shetty K Jul 10 '16 at 06:07
  • @RajathShettyK the weird thing is that i have another storyboard in my app, and it is doing exactly the same thing like this one. In that storyboard, all the views are embedded in a navigation controller, and they have the same code like this one. but it works just fine – AlexBains Jul 10 '16 at 06:13

0 Answers0