All Projects → XiFengLang → JKPhotoBrowser

XiFengLang / JKPhotoBrowser

Licence: MIT License
高仿微信、iOS10 相册的图片浏览器,具备拖拽缩放、渐变效果

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to JKPhotoBrowser

Photostructure For Servers
PhotoStructure for Servers
Stars: ✭ 98 (+512.5%)
Mutual labels:  photo-browser, photo
Photobrowser
Elegant photo browser in Swift. 图片与视频浏览器。
Stars: ✭ 975 (+5993.75%)
Mutual labels:  photo-browser, photo
Lantern
基于Swift的高可用视图框架
Stars: ✭ 181 (+1031.25%)
Mutual labels:  photo-browser, photo
Photoviewslider
📷 A simple photo browser for Android applications.
Stars: ✭ 78 (+387.5%)
Mutual labels:  photo-browser, photo
MLDPhotoManager
弹出AlertController让用户选择相机还是相册.基于@gang544043963大神的LGPhotoBrowser项目再次封装
Stars: ✭ 19 (+18.75%)
Mutual labels:  photo, photobrowser
HXPHPicker
Photo/Video Selector-Supports LivePhoto, GIF selection, online download of resources on iCloud, and editing of photos/videos
Stars: ✭ 228 (+1325%)
Mutual labels:  photo
Leon
Leon is swift library to show and slid images with more gesture
Stars: ✭ 16 (+0%)
Mutual labels:  ios-ui
circularProgressBar
This repo contains a demo app for circularProgressBar.swift
Stars: ✭ 17 (+6.25%)
Mutual labels:  ios-ui
photoselect
No description or website provided.
Stars: ✭ 39 (+143.75%)
Mutual labels:  photo
PyGram
An Instagram-like photo editor in Python
Stars: ✭ 15 (-6.25%)
Mutual labels:  photo
trash-classify
Classify trash by tensorflow coco-ssd model in the browser. Take a photo then classify ~~ : )
Stars: ✭ 29 (+81.25%)
Mutual labels:  photo
AFTPhotoScroller
A simple photo browser using like iOS photo app.
Stars: ✭ 20 (+25%)
Mutual labels:  photo-browser
zusam
Private groups to share messages, photos, videos, links with friends and family.
Stars: ✭ 79 (+393.75%)
Mutual labels:  photo
Monotone
An Unsplash Application for iOS.
Stars: ✭ 181 (+1031.25%)
Mutual labels:  photo
iCloud-Photo-Downloader
iCloud Photo Downloader - Fetch Originals from iCloud Photo Library
Stars: ✭ 17 (+6.25%)
Mutual labels:  photo
iconic-input
Beautiful Input components for React Native... <IconicTextbox/> and much more!
Stars: ✭ 22 (+37.5%)
Mutual labels:  ios-ui
aaf-easyphotomap
📷 Easy Photo Map is a photomap application that displays the location of the photo on the map using the location information included in the photo.
Stars: ✭ 36 (+125%)
Mutual labels:  photo
StackViewLayout
Coming soon!
Stars: ✭ 26 (+62.5%)
Mutual labels:  ios-ui
Lassi-Android
All in 1 picker library for android.
Stars: ✭ 108 (+575%)
Mutual labels:  photo
xGallerify
A lightweight, responsive, smart gallery based on jQuery
Stars: ✭ 52 (+225%)
Mutual labels:  photo

JKPhotoBrowser

v1.2.0 已适配iOS14

图片浏览器,具备拖拽缩放、渐变效果

主要针对聊天界面、朋友圈界面实现图片浏览功能,并且高仿微信即iOS10相册的动画效果。实现部分的代码比较复杂,不在此列出,请下载工程查看。

gif

主要代码如

        NSIndexPath * indexPath = [NSIndexPath indexPathForRow:index-1 inSection:0];
        JKPhotoModel * model = [JKPhotoModel modelWithImageView:imageView
                                                      imageSize:image.size
                                                    smallPicUrl:imageName
                                                      indexPath:indexPath
                                                    contentView:self.view];                                                                                                                                                                          
    UIImageView * imageView = (UIImageView *)tap.view;
    JKPhotoBrowser().jk_itemArray = self.imageModels;
    JKPhotoBrowser().jk_currentIndex = imageView.tag - 1;
    
    JKSystemPageControl * pageIndicator = [[JKSystemPageControl alloc] init];
    pageIndicator.currentPageIndicatorTintColor = UIColor.whiteColor;
    pageIndicator.pageIndicatorTintColor = UIColor.darkGrayColor;
    
    JKPhotoBrowser().jk_pageControl = pageIndicator;
    //    JKPhotoBrowser().jk_hidesOriginalImageView = YES;
    [[JKPhotoManager sharedManager] jk_showPhotoBrowser];
    JKPhotoBrowser().jk_delegate = self;
    JKPhotoBrowser().jk_QRCodeRecognizerEnable = YES;
/**    返回大图URL    */
- (NSString *)jk_bigImageUrlAtIndex:(NSInteger) index {
    JKImageModel * model = self.models[index];
    return model.imageUrl;
}



- (void)jk_handleImageWriteToSavedPhotosAlbumWithError:(NSError *)error {
	// ...
}

///  处理二维码识别
- (void)jk_handleQRCodeRecognitionResult:(NSString *)QRCodeContent {
    NSLog(@"%@",QRCodeContent);
    [JKPhotoBrowser() jk_hidesPhotoBrowserWhenPushed];
    [self.navigationController pushViewController:[JKViewController new] animated:YES];
}

/// 展示图片浏览器(更改状态栏)
- (void)jk_phoneBrowserDidAppear {
    self.statusBarStyle = UIStatusBarStyleLightContent;
}

/// 关闭图片浏览器(更改状态栏)
- (void)jk_phoneBrowserDidDisappear {
    self.statusBarStyle = UIStatusBarStyleDefault;
}

gifgif

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].