IOS 计算字体控件盖度, 设置粗体+阴影

//计算字体高度

    CGSize descriptionSize = [descriptionLabel.text sizeWithFont:descriptionLabel.font constrainedToSize:CGSizeMake(260.0, CGFLOAT_MAX)];

    

    //设置字体为粗体 ,阴影背景

    [UIFont fontWithName:@"Helvetica-Bold" size:15];

    l.shadowColor = [UIColor whiteColor];

    l.shadowOffset = CGSizeMake(0, 1);

posted @ 2013-05-15 19:30  javawebsoa  Views(229)  Comments(0)    收藏  举报