1.导入
QuartzCore/QuartzCore.h库
2.
[table.layer setAnchorPoint:CGPointMake(0.0, 0.0)];
table.transform = CGAffineTransformMakeRotation(M_PI/-2);
table.showsVerticalScrollIndicator = NO;
table.frame = CGRectMake(0, 80, 320, 60);
table.rowHeight = 60.0;
cell.textLabel.transform = CGAffineTransformMakeRotation(M_PI/2);
本文详细介绍了如何利用QuartzCore库中的API调整表格组件的布局和文本旋转,包括设置锚点位置、应用旋转变换、禁用垂直滚动条以及定义表格的尺寸和行高。
3820

被折叠的 条评论
为什么被折叠?



