filesbox/app/filesbox_ios/FilesBox/Pods/SJXSignTextView/README.md
2023-09-21 10:53:23 +08:00

23 lines
655 B
Markdown

# SJXSignTextView
在方形的View中自定义左上角或右上角的斜向文字标签
![](https://img2018.cnblogs.com/blog/832322/201907/832322-20190726230720318-1520936948.png)
## 引用方式
1. 使用cocoapods
```
pod 'SJXSignTextView'
```
2. 直接将 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];
```