ios开发之--使用UILabel Category 计算UILabel内容大小

在此仅做记录,代码如下: .h #import <UIKit/UIKit.h> @interface UILabel (BoundingSize) - (CGSize)boundingRectWithSize:(CGSize)size; @end .m #import "UILabel+BoundingSize.h" @implementation UILabel (BoundingSize)
相关文章
相关标签/搜索