iOS怎么让UILable的字体倾斜

-(UILabel *)beInvLab{
    if (!_beInvLab) {
        _beInvLab = [[UILabel alloc]init];
        _beInvLab.text = @"被邀约人:";
        _beInvLab.textColor = WhiteColor;
        _beInvLab.font = Fontw15;
        CGAffineTransform matrix = CGAffineTransformMake(1,
                              0, tanf(-15 * (CGFloat)M_PI /
                                      180), 1,
                              0, 0);
        _beInvLab.transform = matrix;
    }
    return _beInvLab;
}

你可能感兴趣的:(iOS怎么让UILable的字体倾斜)