如果要想如图所示纵向对齐,原生的UILabel做不到,使用下面这个控件,就可以简单的实现了。
下载:VerticallyAlignedLabel 调用方法 [self.lael1 setVerticalAlignment:VerticalAlignmentTop]; [self.lael2 setVerticalAlignment:VerticalAlignmentMiddle]; [self.lael3 setVerticalAlignment:VerticalAlignmentBottom];
如果要想如图所示纵向对齐,原生的UILabel做不到,使用下面这个控件,就可以简单的实现了。
下载:VerticallyAlignedLabel 调用方法 [self.lael1 setVerticalAlignment:VerticalAlignmentTop]; [self.lael2 setVerticalAlignment:VerticalAlignmentMiddle]; [self.lael3 setVerticalAlignment:VerticalAlignmentBottom];
转载于:https://www.cnblogs.com/liuxingzi/archive/2013/02/21/3404318.html
本文介绍了一种实现UILabel垂直对齐的解决方案,并提供了具体的调用方法和实例下载。

723

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



