Skip to content

ddevaz/CPKenburnsSlideshowView

 
 

Repository files navigation

CPKenburnsSlideshowView

Using CPKenburnsView

pod 'CPKenburnsSlideshowView'

Inspired by Hey Day (photo app)

Feature!

  • Infinite scroll -> OK!
  • Change frame size when animating -> OK!
  • Show whole image when long tap -> OK! 🌵

Future!

  • Face detector.
  • Auto photo filtering.

I'm waiting pull request please!

@@@@@@@@@@@@@ Play Movie @@@@@@@@@@@@@

sho1

shot2

CPKenburnsSlideshowView use CPKenburnsImage

Required image or imageUrl;

@interface CPKenburnsImage : NSObject
@property (nonatomic, strong) UIImage *image;
@property (nonatomic, strong) NSURL *imageUrl;
@property (nonatomic, assign) CGFloat latitude;
@property (nonatomic, assign) CGFloat longitude;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSString *subTitle;
@property (nonatomic, strong) NSString *locationDescription;
@property (nonatomic, strong) NSDate *date;
@end
@protocol CPKenburnsSlideshowViewDeleagte <NSObject>
@optional
- (void)slideshowView:(CPKenburnsSlideshowView *)slideshowView downloadImageUrl:(NSURL *)imageUrl completionBlock:(DownloadCompletionBlock)completionBlock;
- (void)slideshowView:(CPKenburnsSlideshowView *)slideshowView willShowKenBurnsView:(CPKenburnsView *)kenBurnsView;
@end

If you use imageUrl,call back

- (void)slideshowView:(CPKenburnsSlideshowView *)slideshowView downloadImageUrl:(NSURL *)imageUrl completionBlock:(DownloadCompletionBlock)completionBlock
{
    UIImaage *image = ~~~~;// Download image
    completionBlock(image);
}

About

Inspired by Hey Day

Resources

License

Stars

Watchers

Forks

Packages

No packages published