每次都逼我翻代码 这次干脆写博客里面算了 哈哈哈
CGSize maxSize = CGSizeMake(ScreenWith-30,NSIntegerMax);
CGSize labelsize = [addressContentLabel.text boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading attributes:@{NSFontAttributeName:addressContentLabel.font} context:nil].size;
时间: 2024-10-23 11:02:29