문제

I want to add a transition effect between images like fade or anything else.

Here's my code:

-(IBAction)startSlideShow:(id)sender;
{
self.imageView.animationImages = [NSArray arrayWithObjects:
                                  [UIImage imageNamed:@"slide01.png"],
                                  [UIImage imageNamed:@"slide02.png"],
                                  [UIImage imageNamed:@"slide03.png"],
                                  [UIImage imageNamed:@"slide04.png"],
                                  [UIImage imageNamed:@"slide05.png"],
                                  nil];

self.imageView.animationDuration = 15.0;
self.imageView.animationRepeatCount = 0;
[self.imageView startAnimating];
}
도움이 되었습니까?

해결책

Try this, I think you looking for this one,.. github.com/jberlana/JBKenBurns

(or)

I found this on someother search, try this too..

http://www.raywenderlich.com/10518/how-to-use-uiscrollview-to-scroll-and-zoom-content

Other simple way to achieve: Steps to achieve

Add all the images in one scroll view.

Enable paging for that scroll view.

Based on the content offset of the scroll view highlight the appropriate dot(indicator in the bottom).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top