GithubHelp home page GithubHelp logo

Comments (6)

lzc1022 avatar lzc1022 commented on May 16, 2024

也就是网络图片的,图片大小不固定

from uitableviewdynamiclayoutcacheheight.

lzc1022 avatar lzc1022 commented on May 16, 2024

Uploading UITableView-BMTemplateLayoutCell-master.zip…
4cf33773-2db5-4943-b1cd-a54ee015d850

from uitableviewdynamiclayoutcacheheight.

liangdahong avatar liangdahong commented on May 16, 2024

@lzc12313 有时间写一个哈,其实也是一样的,网络图片自适应高度需要服务器返回图片高度即可。

from uitableviewdynamiclayoutcacheheight.

lzc1022 avatar lzc1022 commented on May 16, 2024

UITableView-BMTemplateLayoutCell-图片高度不固定.zip
这是我写的demo,您帮我看一下

from uitableviewdynamiclayoutcacheheight.

liangdahong avatar liangdahong commented on May 16, 2024

@lzc12313 供参考,一般在处理网络图片自适应时需提供图片尺寸, 然后在赋值 Cell 时修改图片的约束。
Demo 中我模拟了图片高度,在具体的业务中可以由图片的尺寸做相应处理。

UITableView-BMTemplateLayoutCell-图片高度不固定.zip

from uitableviewdynamiclayoutcacheheight.

liangdahong avatar liangdahong commented on May 16, 2024

效果图如下:

2

from uitableviewdynamiclayoutcacheheight.

Related Issues (13)

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.