sjxjjx / SJXSignTextView

在方形的View中自定义左上角或右上角的斜向文字标签

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SJXSignTextView

在方形的View中自定义左上角或右上角的斜向文字标签

blog:iOS项目之自定义斜向文字标签

引用方式

  1. 使用cocoapods
    pod 'SJXSignTextView'
  1. 直接将 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];

About

在方形的View中自定义左上角或右上角的斜向文字标签

License:MIT License


Languages

Language:Objective-C 92.7%Language:Ruby 7.3%