makezl / zlphotolib Goto Github PK
View Code? Open in Web Editor NEWThis is a photo album multiple-choice / photo browser example
Home Page: http://weibo.com/makezl
License: Other
This is a photo album multiple-choice / photo browser example
Home Page: http://weibo.com/makezl
License: Other
您好,在用您这个库的时候,选择的照片比原图小了一些,您库里是对原图处理了么??
是否可以增加浏览图片的时候支持播放视频
自定义拍照-点击拍照icon-点击屏幕 就会闪退
2015-10-31 12:35:54.803 YS[3182:30337] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x000000010be0cf45 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010adb6deb objc_exception_throw + 48
2 CoreFoundation 0x000000010be0ce7d +[NSException raise:format:] + 205
3 Foundation 0x000000010ab2c289 _AssertAutolayoutOnMainThreadOnly + 79
4 Foundation 0x000000010a98ccce -[NSISEngine withBehaviors:performModifications:] + 31
5 UIKit 0x000000010d596d4a -[UIView(Hierarchy) _postMovedFromSuperview:] + 575
6 UIKit 0x000000010d594d53 __UIViewWasRemovedFromSuperview + 213
7 UIKit 0x000000010d594905 -[UIView(Hierarchy) removeFromSuperview] + 422
8 YS 0x0000000108060068 -[ZLPhotoPickerBrowserPhotoScrollView setProgress:] + 296
9 YS 0x000000010805fc7e __48-[ZLPhotoPickerBrowserPhotoScrollView setPhoto:]_block_invoke174 + 62
10 YS 0x00000001081ea4b1 __72-[SDWebImageDownloader downloadImageWithURL:options:progress:completed:]_block_invoke_2 + 897
11 YS 0x000000010811464b -[SDWebImageDownloaderOperation connection:didReceiveData:] + 2715
12 CFNetwork 0x000000010a2819ae __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 69
13 CFNetwork 0x000000010a281952 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 199
14 CFNetwork 0x000000010a281aa7 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 48
15 CFNetwork 0x000000010a2561d0 _ZL30_NSURLConnectionDidReceiveDataP16_CFURLConnectionPK8__CFDatalPKv + 79
16 CFNetwork 0x000000010a0ec72b ___ZN27URLConnectionClient_Classic29_delegate_didReceiveDataArrayEv_block_invoke + 293
17 CFNetwork 0x000000010a1dd5eb ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 100
18 libdispatch.dylib 0x000000010ec0c49b _dispatch_client_callout + 8
19 libdispatch.dylib 0x000000010ebee54b _dispatch_block_invoke + 716
20 CFNetwork 0x000000010a0db6f0 _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 24
21 CoreFoundation 0x000000010bd0c4c4 CFArrayApplyFunction + 68
22 CFNetwork 0x000000010a0db5e9 _ZN19RunloopBlockContext7performEv + 137
23 CFNetwork 0x000000010a0db4a2 _ZN17MultiplexerSource7performEv + 282
24 CFNetwork 0x000000010a0db2c4 _ZN17MultiplexerSource8_performEPv + 72
25 CoreFoundation 0x000000010bd39011 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
26 CoreFoundation 0x000000010bd2ef3c __CFRunLoopDoSources0 + 556
27 CoreFoundation 0x000000010bd2e3f3 __CFRunLoopRun + 867
28 CoreFoundation 0x000000010bd2de08 CFRunLoopRunSpecific + 488
29 CoreFoundation 0x000000010bde0ff1 CFRunLoopRun + 97
30 YS 0x0000000108112559 -[SDWebImageDownloaderOperation start] + 1913
31 Foundation 0x000000010a949c47 __NSOQSchedule_f + 194
32 libdispatch.dylib 0x000000010ec0c49b _dispatch_client_callout + 8
33 libdispatch.dylib 0x000000010ebf28ec _dispatch_queue_drain + 2215
34 libdispatch.dylib 0x000000010ebf1e0d _dispatch_queue_invoke + 601
35 libdispatch.dylib 0x000000010ebf4a56 _dispatch_root_queue_drain + 1420
36 libdispatch.dylib 0x000000010ebf44c5 _dispatch_worker_thread3 + 111
37 libsystem_pthread.dylib 0x000000010ef3da9d _pthread_wqthread + 729
38 libsystem_pthread.dylib 0x000000010ef3b3dd start_wqthread + 13
)
ZLCameraViewController里用的倒是maxCount。。。。
// 创建图片多选控制器
ZLPhotoPickerViewController *pickerVc = [[ZLPhotoPickerViewController alloc] init];
// 默认显示相册里面的内容SavePhotos
pickerVc.status = PickerViewShowStatusSavePhotos;
// 选择图片的最小数,默认是9张图片最大也是9张
pickerVc.minCount = 4;
[pickerVc show];
[self.toolBarThumbCollectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForRow:self.selectAssets.count-1 inSection:0] atScrollPosition:UICollectionViewScrollPositionNone animated:YES];
此时self.selectAssets.count的个数为0
MLSelectPhoto 库无法访问了啊,页面打不开了
进入图片浏览器,连续两次快速缩放任意一张图片后,有很大几率造成不能左右滑动,造成页面卡死的假象,但是能缩放,再次缩放后无任何问题
造成bug的缩放方式:先放大,再快速缩小,再放大,再快速缩小。
类似微信一样,头像在cell上,点击时占位图为imageview小图,放大为服务器图片地址,现在在cell上点击有问题,不知道是否跟navigation的translucent属性有关
比如UIView+ZLExtension 这样的分类,里面的方法很容易和其他类库(比如Masonry)的同名方法产生冲突,建议这种通用型类库少用这样的分类。感谢作者的辛苦付出!
如题
我想选择相册图片,然后返回原始图,而不是略缩图,有方法设置吗?如果没有的话在看哪个文件哪个代码改?谢谢
在第一次加载、或者滑动的时候,[self setProgress:(double)receivedSize / expectedSize];会在非主线程跑、提示奔溃
最后一张大图的时候,有时会卡住,不能左右滑动了,只能点击缩小
在图片浏览时,是否可以增加缩略图也可以传本地或网络地址,但可以不传
When I run demo in really iPhone6 and click "select photos button", I get error in ZLPickerAssetsViewController,
Method:
Can you fix this? Thx!
回收图片的时候,图片并没有回到原位,而是跑到上方,然后再闪回到原位,还有就是打开正方形图片的时候,会卡顿一下,然后才撑满屏幕
图片浏览时,浏览最后一个后(最后一张是大图),如果再往左侧滑动,多试几次,就导致图片无法右滑动,(模拟器IOS9.2 iphone6 plus, 一定要在plus下才会出这个问题)
Please support cocoapods import !
能否在进行图片(视频)浏览的时候提供一种,push方式查看照片,单击图片时,隐藏navigationbar
Collection中显示图片,点击图片调用PhotoBrower,点击collection的最后一张图片图片查看器中的CellForItemAtIndexPath总会被调用两次,显示的索引值分别为0和最后一张图所对应的索引。这导致的后果是,当图片是从网络加载时,启动PhotoBrower时,将不使用Fade动画,使点击最后一张图时,显示第一张和最后一张,第一张闪过。
设备iPhone5s ,ios 8.1
在相册中多选照片的时候,选择的照片会展示在下面的一个横向预览scrollview上,5s的屏幕可以显示5张预览图,当选择的照片超过一定数量后scrollview的滑动会开启(>=6张),这时候选择最后一张然后点击进入图片浏览器浏览,再点一下返回缩略图的过程中会直接崩溃
我是在使用pad真机运行的时候, 点击拍照上面第二个闪电按钮的时候崩溃的,崩溃在
在照片浏览器里面,尺寸可以贴到屏幕边缘的图双击没有问题。贴不到屏幕边缘的小图双击放大会跑到屏幕外面无法再单击图片退出
因苹果在iOS8不建议使用ALAssetLibrary, 并在iOS9.3 ipad上会拿不到缩略图,这个库暂时做了兼容的办法,考虑这个库比较老,很多方法不方便改,新建一个库来维护,并删除了之前一些分开的库,因为很多方法与思路并不好,总之我会尽力去维护做到更好,谢谢你们!
能 添加个 删除图片的动画吗?看起来 太生硬了
pod好像好久没有更新了
关于你库里bundle内照片的名字能不能规范点啊...
在加载高清图的时候缩略图背景会消失
Dear ZL:
ios9.0以上,苹果建议使用Photos替代AssetsLibrary了,而且AssetsLibrary在9.0以上确实有些坑。我已经在我的项目中,将您的库加入了Photos兼容处理,但感觉不是很完美!
可否请你在demo中,加入一下对Photos库的兼容??
THX!!
点击链接过去,直接404了,希望作者赶快修复下
如题
还有那个分类的警告,很难改掉
机型:iphone5s(必须真机)
系统:7.0.4
操作步骤:
能否在进行图片浏览的时候提供一种,push方式查看照片,单击图片时,隐藏navigationbar
Thx~
修复旋转拍照图片没旋转的BUG。
有需要的童鞋可以下载,看效果 :)
hi, 貌似cocopods 拉下来的时候有些问题!文件拉不下来,只拉下来一个空文件夹!
感谢大神分享,提议一下, 能抽时间改下横竖屏自适应吗 , 包括图片浏览 、相册选择那些功能 。
多选相册里面之后,查看大图,这个动画没有之前一个版本漂亮了,是我的错觉么。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.