获取字符串宽高

    NSDictionary *attribute = @{NSFontAttributeName: app_font_B(23)};
    CGSize labelsize = [name boundingRectWithSize:size options:NSStringDrawingTruncatesLastVisibleLine attributes:attribute context:nil].size;

你可能感兴趣的:(获取字符串宽高)