美文网首页
sizewithattri

sizewithattri

作者: ShawnDu | 来源:发表于2016-02-25 17:41 被阅读24次

    iOS7 later:

    NSDictionary *attributes = @{NSFontAttributeName: [UIFont fontWithName:@"HelveticaNeue" size:14]}; 
    CGRect rect = [textToMeasure boundingRectWithSize:CGSizeMake(width, CGFLOAT_MAX) options:NSStringDrawingUsesLineFragmentOrigin attributes:attributes context:nil];
    

    相关文章

      网友评论

          本文标题:sizewithattri

          本文链接:https://www.haomeiwen.com/subject/ihoikttx.html