一个互动的iOS图片浏览器:JTSImageViewController

分享到:

JTSImageViewController是一个互动的iOS图片浏览器。支持双击图片放大,将图片拨离画面就能够取消浏览。如果没有完全离开界面,图片能回到原位,并有回弹效果。

- (void)someBigImageButtonTapped:(id)sender {
// Create image info
JTSImageInfo *imageInfo = [[JTSImageInfo alloc] init];
imageInfo.image = YOUR_SOURCE_IMAGE;
imageInfo.referenceRect = self.bigImageButton.frame;
imageInfo.referenceView = self.bigImageButton.superview;
// Setup view controller
JTSImageViewController *imageViewer = [[JTSImageViewController alloc]
initWithImageInfo:imageInfo
mode:JTSImageViewControllerMode_Image
backgroundStyle:JTSImageViewControllerBackgroundStyle_ScaledDimmedBlurred];
// Present the view controller.
[imageViewer showFromViewController:self transition:JTSImageViewControllerTransition_FromOriginalPosition];
}



项目主页:http://www.open-open.com/lib/view/home/1415759861102

昵    称:
验证码:

相关文档: