GithubHelp home page GithubHelp logo

pyphotobrowser's Issues

在未发布视图线性布局下超过四列的图片后图片显示不全布局混乱

- (void)viewDidLoad {
    [super viewDidLoad];
    // 初始化
    [self setup];

    // 1. 常见一个发布图片时的photosView
    PYPhotosView *publishPhotosView = [PYPhotosView photosView];
    // 2. 添加本地图片
    NSMutableArray *imagesM = [NSMutableArray array];
    for (int i = 0; i < 6; i++) {
        [imagesM addObject:[UIImage imageNamed:[NSString stringWithFormat:@"%02d", i + 1]]];
    }
    publishPhotosView.py_x = PYMargin ;
    publishPhotosView.py_y = PYMargin * 2 + 64;
    // 2.1 设置本地图片
    publishPhotosView.images = imagesM;
    publishPhotosView.photoMargin = 0.0;
    // 3. 设置代理
    publishPhotosView.delegate = self;
    publishPhotosView.photosMaxCol = 4;
    publishPhotosView.imagesMaxCountWhenWillCompose = 6;

    // 4. 添加photosView
    [self.view addSubview:publishPhotosView];
    self.publishPhotosView = publishPhotosView;
}

pod 引入后有时会报错

Include of non-modular header inside framework module 'PYPhotoBrowser.MBProgressHUD_PY'

Include of non-modular header inside framework module 'PYPhotoBrowser.PYProgressView'

滑动最后一张时,会崩溃

在page崩溃的地方加上判断 :
self.pageControl.currentPage = page;
// 取出photosView
PYPhotosView *photosView = self.selectedPhotoView.photosView;
if (page >photosView.subviews.count) {
page = page-1;
self.selectedPhotoView = photosView.subviews[page];
}

BUG:未发布状态下,当选择一张图片的size处理

@iphone5solo 兄弟,你前几天提交的这个代码,会导致未发布状态下,只选择一张图片的时候 addImageButton显示不出来,所以你应该加个状态条件。

// 如果图片为一张,则图片的大小和photosView一致
if (count == 1 && !CGSizeEqualToSize(self.bounds.size, CGSizeMake(self.photoMargin, self.photoMargin))) {
    return self.bounds.size;
}

图片浏览器图片隐藏的bug

当单击图片隐藏时候,如果原始小图在navibar下或者在tabbar下,因为视图层级的缘故,隐藏时候的动画不自然(显示在在navibar上或者在tabbar上),正常的应该和原始图一样的,也在navibar下或者在tabbar下。
img_0298
img_0299

关于真机测试

进入图片浏览器,长按,弹出sheet,单击保存,保存成功,单击浏览器 返回上一视图, 上一视图中 所有btn 不能被点击 只有真机情况下 会有这个bug 模拟器 没毛病

一个小建议

今天看你的源码的时候发现if语句后没有跟上{},虽然没有问题,但是个人觉得这不是一个好习惯。一个小建议而已。

求教一个问题

我用PYPhotosView进行图片缩略展示和全屏展示, 但是PYPhotoBrowseViewDelegate这些协议方法是如何才能用到呢

图片显示和消失的动画!

博主你们好 为什么点击图片大图出现时是先从全屏在到正确大小 而消失时也是先到最大再从屏幕顶部消失 求解

点击以发布图片的问题

加载完已发布网络图片后,点击图片的时候不管点击的是第几张,弹出的总是第一张, 但是下面的page index显示是正确的。点击本地图片的时候就没有这个问题。 这个怎么解决? 当再次点击预览图片缩小的时候,就有以下的信息

Could not load the "close" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "more " image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "play_1" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "pause" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "play" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "close" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "more " image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "play_1" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "pause" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "play" image referenced from a nib in the bundle with identifier "xxxx"

PYPhotoBrowseView 浏览图片切换横屏时bug

PYPhotoBrowseView 传入了uiimgeview 数组后· 竖屏显示正常,也可翻页查看其他图片,但是如果初始化后第一时间由竖着显示切换成横屏后,再翻页查看其他图就闪退。

2个BUG

1.在最大化的图片右上角继续拉大,放手后会回弹到左上角位置,初步猜测是锚点的问题,正在尝试修改
2.手动拉大图片后无法向右滑动切换图片(即上一张),强行右滑到一定距离后由于死循环闪退

模拟器运行有点小问题

我使用您的三方进行全屏大图展示, 虽然不影响真机运行, 但是模拟器运行时, 展示缩略图的时候会崩在PhotoView.m的self.addImageButton.py_y = (self.images.count / maxCol) * (self.photoHeight + self.photoMargin); 也就是404行

1个bug

点击发布之后,再次点击示例控制器首页 图片点击无效

猜测可能是销毁了控制器

请问一下

你不是使用 MPMoviePlayerController 作为播放器吗?
为什么本地还需开启 HTTPServer?

初始化设置图片高度的时候不管用

开始时的设置了宽高,发现宽正常,高没有执行。当点击了一下图片,查看了一次大图后,返回时高变正常。还有就是,如果不设置缩略图数,我发现会自动加载大图,这样不是很好吧?

有BUG啊.

在tableViewCell上加的时候,不能用+ (instancetype)photosView;快速创建的方法,然后再给它url数组 会崩溃

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.