iOS - UIPageControl page indicator dots not changing with UISwipeGestureRecognizer
问题 I am using UIPageControl and UISwipeGestureRecognizer to switch between 2 view controllers of my application. I have modified this tutorial without using scroll view. I have 2 issues: 1) Using the swipe gesture is changing the view controllers/pages but not the dots indicating the current page. I have tried if (self.pageControl.currentPage == 0) { self.pageControl.currentPage = 1 } but I am not sure why it does not work. I have the outlet available @property (strong, nonatomic) IBOutlet