GithubHelp home page GithubHelp logo

liangdahong / uitableviewdynamiclayoutcacheheight Goto Github PK

View Code? Open in Web Editor NEW
410.0 7.0 76.0 105.84 MB

🖖高性能的自动计算采用 Autolayout 布局的 UITableViewCell 和 UITableViewHeaderFooterView 的高度,内部自动管理高度缓存。

License: MIT License

Objective-C 92.74% Ruby 0.87% Shell 0.19% Swift 6.19%
uitableview uitableviewcell height cache autolayout masonry fdtemplatelayoutcell uicollectionviewcell uicollectionview wechat

uitableviewdynamiclayoutcacheheight's Issues

网络图片

如果图片是从网络下载的能自动适配高度吗?

maxYView问题

大佬,maxYView demo能用代码写一下吗,再cell中最后一个view设置为cell.maxYView吗,如果需要加常量,写在那个地方比较好

问下当有两个不确定高度的view时怎么处理

有一个label 在一个imageview 上面, label 不一定多少内容, imageview的宽高 后台会返回数据, 但是我发现用数据输入到 masonry里面后 不能正确计算
例如

__block CGFloat bottomHeight = 30 + height /5.0 + 10;

   [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
       make.top.mas_equalTo(self.contentView.mas_top).mas_offset(60);
       make.left.mas_equalTo(self.avatarImageView.mas_left);
       make.right.mas_equalTo(self.honorImageView.mas_left).mas_offset(-10);
       make.bottom.mas_equalTo(self.contentView.mas_bottom).mas_offset(-bottomHeight);
}];

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.