我有一个UIPageControl
翻阅不同页面的。当用户从第 1 页滚动到第 2 页时,我希望 UIImageView 开始褪色。我正在努力找出根据位置添加图层的正确方法。非常感激任何的帮助...
[UIView beginAnimations:@"fade out" context:nil];
[UIView setAnimationDuration:1.0]; // some how based on position??
imageView.alpha = 1.0; // here to?
[UIView commitAnimations];
编辑:
设置委托:
self.pageController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil];
self.pageController.dataSource = self;