I have a problem with UIPageControl . I simplified the problem for clarity below:
I put the button and UIPageControl into my application using the interface builder and put the following in the code:
- (IBAction)tappedButton:(id)sender{ self.pageControl.currentPage = 3; NSLog(@"Tapped Button"); } - (IBAction)changePage:(id)sender{ NSLog(@"PAGE Changed!!!!"); }
I applied the Value Changed action to the Controller page through the interface builder.
When I click on the button, I see the output of "Tapped Button", and the third point is highlighted ... but the changePage method changePage never called.
Any ideas?
source share