coderxllau / xlphotobrowser Goto Github PK
View Code? Open in Web Editor NEW一个简单实用的图片浏览器,效果类似微信图片浏览器,支持弹出动画和回缩动画,支持多图浏览,支持本地和网络图片浏览,支持多种属性自定义(支持横竖屏)
License: MIT License
一个简单实用的图片浏览器,效果类似微信图片浏览器,支持弹出动画和回缩动画,支持多图浏览,支持本地和网络图片浏览,支持多种属性自定义(支持横竖屏)
License: MIT License
iOS12上,XLPhotoBrowser显示异常,似乎是与show方法里的语句有关[self.photoBrowserWindow.rootViewController.view insertSubview:self atIndex:MAXFLOAT];
photoBrowserWindow取的是delegateWindow,以上语句在iOS11以前真机和模拟器都是正常的,但是在iOS12的真机上,MAXFLOAT似乎等同于0,导致XLPhotoBrowser添加到底层去了。
解决方案是不使用MAXFLOAT,转而使用实际的值比如2000,可临时解决。
[XLPhotoBrowser orientationDidChange] 经常崩溃在这句话,该如何修复
点击保存就打印出下面的信息并且闪退:(希望能尽快解决一下)
=== XLPhotoBrowser' Log ===
提示信息:需要提供源视图才能做弹出/退出图片浏览器的缩放动画
所在方法:-[XLPhotoBrowser showFirstImage]
所在行数:763
Xcode 8.3, 更新到Xcode8.3.2依然有这个问题
objc[83866]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x1176d9cc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1174f06f0). One of the two will be used. Which one is undefined.
l use pod.
第一次加载显示黑色背景和pagecontrol,第二次正常可以显示图片
swift 无法调用 setActionSheetWithTitle... 函数;
iPhone X 顶部 indexLabel 和底部 pageControl 位置需要适配。
~
sdwebImage升级4.0后无法支持gif展示了
保存图片加这段代码做判断, pull request 我就不提了
if (zoomingScrollView.progress < 1) {
NSString *msg = XLPhotoBrowserSaveFailImageLoadingText;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"提示"
message:msg
delegate:nil
cancelButtonTitle:@"确定"
otherButtonTitles:nil];
[alert show];
return;
}
本地图片的时候需要用这个判断,不能用 zoomingScrollView.progress
(zoomingScrollView.hasLoadedImage == false)
/**
不能被调用
显示和隐藏的时候能明显感到不够丝滑
XLZoomingScrollView.o
/Users/test/Library/Developer/Xcode/DerivedData/XLPhotoBrowserDemo-ghacczthuudojcgvoqltotikcevu/Build/Products/Debug-iphoneos/XLPhotoBrowser+CoderXL/libXLPhotoBrowser+CoderXL.a(XLZoomingScrollView.o)
ld: 96 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
===========================
支持PDF文件么
不支持沙盒目录图片路径啊!!!
能不能把这个项目搞到COCOAPODS上去? 这样用起来更方便
if (@available(iOS 13.0, *)) {
UIWindow * window = nil;
for (UIWindowScene * windowScene in [UIApplication sharedApplication].connectedScenes) {
if (windowScene.activationState == UISceneActivationStateForegroundActive) {
_photoBrowserWindow = windowScene.windows.firstObject;
}
}
}
运用此控件的APP 第一次下载后 第一次调用此控件会失效 但是屏幕上已经有这个View了 挡住了屏幕 再次点击屏幕之后 恢复正常, 说明这个View出现了 但是整体是透明的 ,并且只有第一次打开APP后会出现 第二次打开的时候不管第一次有没有触发这个控件都可以正常使用 很诡异……
通过一句代码是可以完美的展现出来,但是同时也带来了一个问题就是会提示需要提供源试图才能做弹出,由于作者你 将images 方法放到了内部,所以想要操作的必须经过你类的实例方法, 由于试图的弹出 直接放到了类方法内部,导致没有办法指定sourceImageView.
支持GIF网络图片就完美了
iPhone4s 9.3
浏览图片返回的时候会黑屏 (大概是UIWindow的问题? )
再次点击黑屏 出现
unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow:
然后就返回了
缺少横竖屏的适配
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.