nivritgupta / 360-degree-view-

make 360 degreeview of any Product , Make Sure Download the zipzap framework and add in your project before run the code Link is https://github.com/pixelglow/zipzap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

360-degree-view-

make 360 degreeview of any Product of any view Like Car, chair , table ect ect MMSpinImageView

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;

About

make 360 degreeview of any Product , Make Sure Download the zipzap framework and add in your project before run the code Link is https://github.com/pixelglow/zipzap

License:MIT License


Languages

Language:Objective-C 100.0%