blog:iOS项目之自定义斜向文字标签
- 使用cocoapods
pod 'SJXSignTextView'
- 直接将 SJXSignTextView 文件拖入项目
SJXSignTextView *testV = [[SJXSignTextView alloc] init];
testV.frame = CGRectMake(0, 0, 40, 40);
testV.directionType = TextDirectionTypeLeft;
testV.text = @"测试文字";
testV.textColor = [UIColor whiteColor];
testV.bgColor = [UIColor blueColor];
testV.textFont = 8;
[self.view addSubview:testV];