Skip to content

UIScrollView嵌套UITableView以及动态计算cell的行高

Notifications You must be signed in to change notification settings

KingComeFromChina/SegmentView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SegmentView

###UIScrollView嵌套UITableView以及动态计算cell的行高 ###先上效果图 效果图 这三个页面是可以左右切换滑动的,纯代码撸,运用了block传值。 查看源码 ##clone git clone https://github.com/KingComeFromChina/SegmentView.git ###核心代码

CGFloat contentHeight = [model.content boundingRectWithSize:
CGSizeMake([UIScreen mainScreen].bounds.size.width - 30 - 20, MAXFLOAT) options:
NSStringDrawingUsesLineFragmentOrigin attributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:15]}
context:nil].size.height + 5;

###如果帮到你了,请点击右上角star

About

UIScrollView嵌套UITableView以及动态计算cell的行高

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published