UILabel* level_label = [[UILabel alloc] initWithFrame:CGRectMake(20, 100, 50, 100)];
//设置字体
UIFont* uifont = [UIFont systemFontOfSize:17.0];
[level_label setFont:uifont];
//设置旋转角度
CGAffineTransform at = CGAffineTransformMakeRotation(M_PI/2);
[level_label setTransform:at];
//设置背景色(clearColor为透明色)
[level_label setBackgroundColor:[UIColor clearColor] ];
//设置显示文字
[level_label setText:@"text"];
[self addSubview:level_label];