Giter VIP home page Giter VIP logo

Comments (11)

LuKane avatar LuKane commented on May 13, 2024

能具体说一下... 哪些图标不显示? 以及 在什么设备上测试的!! 我这边好对应修改!

from knphotobrowser.

LuKane avatar LuKane commented on May 13, 2024

我这边试了一下 cocoapods. bundle中的资源文件可以显示的!

from knphotobrowser.

hstdt avatar hstdt commented on May 13, 2024

@LuKane 确实有图标显示不出来,pod导入的,视频按钮出不来

from knphotobrowser.

LuKane avatar LuKane commented on May 13, 2024

1.麻烦说一下 设备型号 以及 系统版本号!
2.模拟器上能复现吗?

from knphotobrowser.

hstdt avatar hstdt commented on May 13, 2024

1.麻烦说一下 设备型号 以及 系统版本号! 2.模拟器上能复现吗?

iPhone 8(iOS 13), iPhone XS Max(iOS 15) 和模拟器(iPad Pro 11 寸 IOS 15.2)均能复现

使用的是master分支代码

from knphotobrowser.

LuKane avatar LuKane commented on May 13, 2024

方便的话. 加一下QQ细说!! 1169604556

from knphotobrowser.

hstdt avatar hstdt commented on May 13, 2024

@LuKane 加载图片的代码增加一个in bundle就可以了

NSBundle *bundle = [NSBundle bundleForClass:[KNPhotoBrowser class]];

比如

- (void)setIsPlaying:(BOOL)isPlaying{
    _isPlaying = isPlaying;
    if (isPlaying) {
        _isDragging = false;
        [_slider setUserInteractionEnabled:true];

        [_pauseStopBtn setImage:[UIImage imageNamed:@"KNPhotoBrowser.bundle/[email protected]" inBundle:bundle compatibleWithTraitCollection:nil] forState:UIControlStateNormal];
    }else{
        [_pauseStopBtn setImage:[UIImage imageNamed:@"KNPhotoBrowser.bundle/[email protected]" inBundle:bundle compatibleWithTraitCollection:nil] forState:UIControlStateNormal];
    }
}

另外使用asset就能更方便切换 1x 2x 3x 图

https://stackoverflow.com/a/61119321/4728060

from knphotobrowser.

LuKane avatar LuKane commented on May 13, 2024

好的好的!! 我先找出部分机型显示不出来的原因

from knphotobrowser.

hstdt avatar hstdt commented on May 13, 2024

好的好的!! 我先找出部分机型显示不出来的原因

@LuKane 就像上面说的,原因就是没加inBundle,加上就好了,我确认过了。

from knphotobrowser.

LuKane avatar LuKane commented on May 13, 2024

好的

from knphotobrowser.

LuKane avatar LuKane commented on May 13, 2024

cocoapods中的 2.5.5版本已修复!

from knphotobrowser.

Related Issues (20)

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.