All Projects → TianXin123654 → Txcustomview

TianXin123654 / Txcustomview

图片浏览

Projects that are alternatives of or similar to Txcustomview

Photoviewslider
📷 A simple photo browser for Android applications.
Stars: ✭ 78 (+500%)
Mutual labels:  photo-browser
Unsplash Photopicker Ios
📱An iOS photo picker to search and download photos from Unsplash.
Stars: ✭ 213 (+1538.46%)
Mutual labels:  photo-browser
AFTPhotoScroller
A simple photo browser using like iOS photo app.
Stars: ✭ 20 (+53.85%)
Mutual labels:  photo-browser
Photostructure For Servers
PhotoStructure for Servers
Stars: ✭ 98 (+653.85%)
Mutual labels:  photo-browser
Skphotobrowser
Simple PhotoBrowser/Viewer inspired by facebook, twitter photo browsers written by swift
Stars: ✭ 2,285 (+17476.92%)
Mutual labels:  photo-browser
Imageglass
🏞 A lightweight, versatile image viewer
Stars: ✭ 3,284 (+25161.54%)
Mutual labels:  photo-browser
Photobrowser
Elegant photo browser in Swift. 图片与视频浏览器。
Stars: ✭ 975 (+7400%)
Mutual labels:  photo-browser
Photobrowser
A simple iOS Instagram photo browser written in Swift using Alamofire networking library, SwiftyJSON JSON parsing library and FastImageCache storing and retrieving images library.
Stars: ✭ 533 (+4000%)
Mutual labels:  photo-browser
Mvpapp
Android MVP Architecture
Stars: ✭ 2,354 (+18007.69%)
Mutual labels:  photo-browser
Odyssey
Next generation gallery. Exceptional images deserve an exceptional presentation.
Stars: ✭ 29 (+123.08%)
Mutual labels:  photo-browser
Photato
Photato - The personal Pictures gallery
Stars: ✭ 130 (+900%)
Mutual labels:  photo-browser
Lantern
基于Swift的高可用视图框架
Stars: ✭ 181 (+1292.31%)
Mutual labels:  photo-browser
Geeqie
claiming to be the best image viewer / photo collection browser
Stars: ✭ 239 (+1738.46%)
Mutual labels:  photo-browser
Syphotobrowser
A cute and lightweight photo browser like Tweetbot3.
Stars: ✭ 81 (+523.08%)
Mutual labels:  photo-browser
JKPhotoBrowser
高仿微信、iOS10 相册的图片浏览器,具备拖拽缩放、渐变效果
Stars: ✭ 16 (+23.08%)
Mutual labels:  photo-browser
Imageglass Preview
🏔 A modern, versatile image viewer (preview)
Stars: ✭ 72 (+453.85%)
Mutual labels:  photo-browser
Fusuma
Instagram-like photo browser and a camera feature with a few line of code in Swift.
Stars: ✭ 2,434 (+18623.08%)
Mutual labels:  photo-browser
Zlphotolib
This is a photo album multiple-choice / photo browser example
Stars: ✭ 889 (+6738.46%)
Mutual labels:  photo-browser
LLPhotoBrowser
精简版图片浏览器,使用UIScrollView进行图片的缩放、平移,可根据需求自定义界面或扩展功能
Stars: ✭ 18 (+38.46%)
Mutual labels:  photo-browser
PhotoMiner
Photo finder application for macOS
Stars: ✭ 102 (+684.62%)
Mutual labels:  photo-browser

先直接上完成后的效果如下: 2018-05-10 20_01_08.gif

具体的demo 详见github地址:https://github.com/TianXin123654/TXCustomView

#TXCustomView用法如下 ####1.朋友圈快速布局,此方法需要创建TXCustomView的大小,然后传入TXCustomPhoto集合,再设置图片的间距,和数量即可。

/**
 快速生成图片框方法(类似九宫格 图片尺寸根据view给定的大小计算)
 
 @param imageArray TXCustomImageArray
 @param interval 图片之间的间距
 @param throwNumber 一排显示的数量
 @param isFit 是否铺满
 */
-(void)setImageArray:(NSArray<TXCustomPhoto *>*)imageArray
    andImageInterval:(NSInteger )interval
      andThrowNumber:(int )throwNumber
   andIsFitImageView:(BOOL)isFit;

实现后的效果:QQ20180509-1332431.png

####2.根据给定的图片大小计算TXCustomView进行布局,此方法需要创建一个TXCustomSizeSettings类,需求中时常会出现一张图片或两张图片大小不一样。

#pragma mark - 下面为拓展自定义属性
/**
 只有一张图片的时候的尺寸
 */
@property (nonatomic, assign)CGSize onlyOneImageSize;//imageSizeForOne

/**
 只有两张图片时候的尺寸
 */
@property (nonatomic, assign)CGSize onlyTwoImageSize;

/**
 只有三张图片时候的尺寸
 */
@property (nonatomic, assign)CGSize onlyThreeImageSize;

/**
 只有一排的时候尺寸
 */
@property (nonatomic, assign)CGSize frontRowImageSize;

然后用法

/**
 快速生成图片框方法(类似九宫格 图片尺寸根据用户给定的imagesize大小生成)
 
 @param imageArray TXCustomImageArray
 @param sets sets TXCustomSetupSettings自定义拓展设置
 */
-(void)setCustomViewSizeWithImageArray:(NSArray<TXCustomPhoto *>*)imageArray
                           withSetting:(TXCustomSizeSettings *)sets;

实现后的效果: image.png

####3.带图片文字描述型。 QQ20180509-1340073.png 我这里提供了几个数据源协议,可以自定义界面的所有view,只需要实现即可:

//自定义顶部view
- (UIView *)customTopView;
//自定义底部view
- (UIView *)customBottomView;
//长按图片弹出View
- (UIView *)customLongPressView;

与此同时,还提供了几种拓展属性,方便使用。如果觉得好用的话,求一个star。

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].