iOS 代码片段

    xiaoxiao2021-03-26  35

    1、获取字符串的宽度

    UIFont *font = FONT(18); float w = [title sizeWithAttributes:@{NSFontAttributeName:font}].width;
    转载请注明原文地址: https://ju.6miu.com/read-663584.html

    最新回复(0)