Skip to content
Projects

adad184/MMSpinImageView

View on GitHub

About

A UIView to show 360 degree spin photography

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

MMSpinImageView

CocoaPods CocoaPods CocoaPods

MMSpinImageView is UIView to display 360 degree spin photography.

demo

Usage

There's 3 ways to use MMSpinImageView.

you can use datasource to provide your images.

@protocol MMSpinImageViewDelegate <NSObject>

@optional

- (void)spinImageView:(MMSpinImageView*)view didSelectAtIndex:(NSInteger)index;
- (void)spinImageViewBeginLoadData:(MMSpinImageView*)view;
- (void)spinImageViewEndLoadData:(MMSpinImageView*)view;
- (void)spinImageViewFailedLoadData:(MMSpinImageView*)view;

@end

@protocol MMSpinImageViewDatasource <NSObject>

- (UIImage *)spinImageView:(MMSpinImageView *)view imageAtIndex:(NSInteger)index;

@optional
- (NSInteger)numberOfViewsInspinImageView:(MMSpinImageView *)spinImageView;

@end

or you can directly set the images array.

@property (nonatomic, strong)   NSArray  *imagesArray;

and maybe you want to load images from zip file.( this feather depends on zipzap, you can remove relative methods if you don't need this)

- (void)loadDataFromZip:(NSString*)path;

Explore related projects

Loading…