Luong Truong
Luong Truong

Reputation: 2153

ios - making a slideshow effect (fade in/out and crossfade)

I am new on iOS; I am interested in making a slideshow by using videos or images. Following, I want to develop an application which can create a simple slideshow:

1/ Fade in fade out effect
2/ Crossfade effect

EDIT1:

After creating, I also want to save the slideshow to file like some video editor apps do.

Please let me know if there are any libraries which support those effect. Any help would be appreciated!

Thank you in advance!

Upvotes: 0

Views: 332

Answers (2)

zhilinzheng
zhilinzheng

Reputation: 31

The MTTransitions is your need,it includes 76 transitions,can use in image and video,if you want to export video that used transitions, you should use AVAssetExportSession in AVFoundation Framework,I hope it can help you

Upvotes: 1

Gal
Gal

Reputation: 1582

Use this:

newView.alpha = 1;
[self.view addSubView:newView];

[UIView animateWithDuration(0.3, animations: {
   newView.alpha = 0;
   oldView.alpha = 1;
}, completion: (void (^)(BOOL finished)){
   [oldView removeFromSuperView];
})];

Upvotes: 0

Related Questions