Giter VIP home page Giter VIP logo

xlphotobrowser's People

Contributors

coderxllau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xlphotobrowser's Issues

iOS12 上显示异常

iOS12上,XLPhotoBrowser显示异常,似乎是与show方法里的语句有关[self.photoBrowserWindow.rootViewController.view insertSubview:self atIndex:MAXFLOAT];
photoBrowserWindow取的是delegateWindow,以上语句在iOS11以前真机和模拟器都是正常的,但是在iOS12的真机上,MAXFLOAT似乎等同于0,导致XLPhotoBrowser添加到底层去了。
解决方案是不使用MAXFLOAT,转而使用实际的值比如2000,可临时解决。

崩溃问题

[XLPhotoBrowser orientationDidChange] 经常崩溃在这句话,该如何修复

在ios11上点击保存崩溃 闪退

点击保存就打印出下面的信息并且闪退:(希望能尽快解决一下)

=== XLPhotoBrowser' Log ===
提示信息:需要提供源视图才能做弹出/退出图片浏览器的缩放动画
所在方法:-[XLPhotoBrowser showFirstImage]
所在行数:763

Class PLBuildVersion is implemented in both

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.

第一次加载黑屏

第一次加载显示黑色背景和pagecontrol,第二次正常可以显示图片

网络图片加载中 保存会保存一张占位图

保存图片加这段代码做判断, 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)

swift项目中导入XLPhotoBrowser, 在设置初始化底部ActionSheet弹框数据时,无法调用setActionSheetWithTitle:title....方法

/**

  • 初始化底部ActionSheet弹框数据 , 不实现此方法,则没有类似微信那种长按手势弹框
  • @param title ActionSheet的title
  • @param delegate XLPhotoBrowserDelegate
  • @param cancelButtonTitle 取消按钮文字
  • @param deleteButtonTitle 删除按钮文字,如果为nil,不显示删除按钮
  • @param otherButtonTitle 其他按钮数组
    */
  • (void)setActionSheetWithTitle:(NSString *)title delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle deleteButtonTitle:( NSString *)deleteButtonTitle otherButtonTitles:( NSString *)otherButtonTitle, ... NS_REQUIRES_NIL_TERMINATION;

不能被调用

cocoapods导入就报错了

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)

报错后,不能滑动

报出下面错误后,tableView不能滑动,图片不能点击:

===========================
=== XLPhotoBrowser' Log ===
提示信息:需要提供源视图才能做弹出/退出图片浏览器的缩放动画
所在方法:-[XLPhotoBrowser showFirstImage]
所在行数:752

===========================

显示需要适配iOS13

if (@available(iOS 13.0, *)) {
UIWindow * window = nil;
for (UIWindowScene * windowScene in [UIApplication sharedApplication].connectedScenes) {
if (windowScene.activationState == UISceneActivationStateForegroundActive) {
_photoBrowserWindow = windowScene.windows.firstObject;
}
}

    }

第一次下载APP 并打开后 控件失效

运用此控件的APP 第一次下载后 第一次调用此控件会失效 但是屏幕上已经有这个View了 挡住了屏幕 再次点击屏幕之后 恢复正常, 说明这个View出现了 但是整体是透明的 ,并且只有第一次打开APP后会出现 第二次打开的时候不管第一次有没有触发这个控件都可以正常使用 很诡异……

关于一句代码的问题

通过一句代码是可以完美的展现出来,但是同时也带来了一个问题就是会提示需要提供源试图才能做弹出,由于作者你 将images 方法放到了内部,所以想要操作的必须经过你类的实例方法, 由于试图的弹出 直接放到了类方法内部,导致没有办法指定sourceImageView.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.