TianXin123654 / Txcustomview
图片浏览
Stars: ✭ 13
Labels
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
Odyssey
Next generation gallery. Exceptional images deserve an exceptional presentation.
Stars: ✭ 29 (+123.08%)
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
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
https://github.com/TianXin123654/TXCustomView
具体的demo 详见github地址:#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;
####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;
####3.带图片文字描述型。 我这里提供了几个数据源协议,可以自定义界面的所有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].