I'm new in ios development and i want to open images in fullscreen mode like facebook iphone app , also I want the event which let you drag image to down and then open the image in fullscreen mode. So anyone can help men ?
You could use this pod: XLMediaZoom. We recently developed it for our needs and shared here: XLMediaZoom
If you use CocoaPods in your projects you just need to add
pod 'XLMediaZoom'
This utility let you preview images and videos in fullscreen like Instagram does.
To open image in full screen try this :
self.imageView.frame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height);
To let the user drag the image use UIPanGestureRecognizer .
To look at examples of UIPanGestureRecognizer refer to this .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.