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)
相關文章
相關標籤/搜索