![](/img/trans.png)
[英]move UILabel and UIImageVIew on UITableviewcell with autoLayout
[英]How to get UIImageView Size (any Object Like UIButton, UILabel) in UITableViewCell. I used Autolayout
我在UITableViewCell中有UIView,UILabel和UIImageView。
我想在單元格加載時在(tableView cellForRowAtIndexPath)中獲取UIImageView的寬度,因為我想根據UIImageView的寬度設置UIImageView的高度。
我用過UITableViewAutomaticDimension
實際上我想根據iPhone 8獲取UIImageView的寬度,其寬度在iPhone 5中
我為iPhone 8和UIImageView尺寸390 * 390制作單元格在iPhone 5中,我得到與UIImageView尺寸390 * 390 相同的圖片。 根據iPhone5,我沒有得到尺寸
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.