Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能不能更新个纯代码布局的,不同大小图片的Demo #3

Closed
lzc1022 opened this issue Mar 26, 2018 · 6 comments
Closed

能不能更新个纯代码布局的,不同大小图片的Demo #3

lzc1022 opened this issue Mar 26, 2018 · 6 comments

Comments

@lzc1022
Copy link

lzc1022 commented Mar 26, 2018

No description provided.

@lzc1022
Copy link
Author

lzc1022 commented Mar 26, 2018

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

@lzc1022
Copy link
Author

lzc1022 commented Mar 26, 2018

@liangdahong
Copy link
Owner

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

@lzc1022
Copy link
Author

lzc1022 commented Mar 28, 2018

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

@liangdahong
Copy link
Owner

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

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

@liangdahong
Copy link
Owner

效果图如下:

2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants