CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Aug 2017 |
Maintained by Mihaylov Artem.
AMImageSequenceView is a simple view for showing image sequence in your iOS app. This view is intended for viewing 360-spin images. It supports 360-degree horizontal rotation and image zooming.
You can try 360-spin images on this resources:
http://www.ajax-zoom.com/examples/example15.php
https://www.yofla.com/3d-rotate/examples/backpack-360-view/
Drag the AMImageSequenceView/AMImageSequenceView folder into your project.
AMImageSequenceView is subclass of UIView. This view has one subview - UIScrollView for zooming images. UIScrollView has one subview - UIImageView with gesture recognizer for rotating.
To init view you should use following method:
[[AMImageSequenceView alloc] initWithImages:imagesArray frame:viewFrame]imageSequenceView.zoomEnabled = YES; //Default is NO
imageSequenceView.zoomBouncesEnabled = YES; //Default is NO
imageSequenceView.maximumZoomScale = 2.5; //Default is 1.0Note, that you can't set minimumZoomScale property, because it is readonly, and it's value is always 1.0.
It is necessary for correct work of rotating gesture recognizer.
Also, if current zoom scale of image is bigger than 1.0 you will not be able to rotate it.
You can customize the sensivity of rotating gesture recognizer (how fast it will rotate image) with following line:
imageSequenceView.sensivity = 1.5; //Default is 0.8Notice, that higher sensivity means slower rotation of image.
You can enable rotation inertia (continue rotating for some time with deceleration after you end rotating gesture, similarly as scrolling of UITableView) with following line:
imageSequenceView.inertiaEnabled = YES; //Default is NOTo set content mode of image use this:
imageSequenceView.contentMode = UIViewContentModeScaleCenter; //Default is UIViewContentModeScaleAspectFitAMImageSequenceView is distributed under the terms and conditions of the MIT license.
AMImageSequenceView is developed by Artem Mihaylov.
If you're using AMImageSequenceView in your project, attribution would be very appreciated.