Latest 0.0.4
Homepage https://github.com/yunisSong/SYTouchLabel
License MIT
Platforms ios 7.0, requires ARC
Authors

demo.gif

可使用 CocoaPods 集成使用。

pod 'SYTouchLabel'

使用如下:

    SYTouchLabel *label = [[SYTouchLabel alloc] init];
    label.lineBreakMode = NSLineBreakByCharWrapping;
    label.numberOfLines = 0;
    label.text = @"是的阿萨德法师是的阿萨德法师是的建设eeeeeeeeeeeeeeeeeeeeeeeeee社会主义新中国萨德法师是的阿萨德法师是的阿萨德法师是的阿萨德法师是的阿萨德法师";
    label.sy_clickString = @"eeeeeeeeeeeeeeeeeeeeeeeeee";
    label.sy_clickRange = NSMakeRange(2, 5 );
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.view);
        make.width.equalTo(self.view).offset(- 40);
    }];

    label.clickBlock = ^(NSString *clickString)
    {
        NSLog(@"点击的文本为 %@",clickString);
    };

Latest podspec

{
    "name": "SYTouchLabel",
    "version": "0.0.4",
    "summary": "u8f7bu91cfu7ea7u53efu70b9u51fb Label",
    "description": "u8f7bu91cfu7ea7u53efu70b9u51fb Label",
    "homepage": "https://github.com/yunisSong/SYTouchLabel",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Yunis": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yunisSong/SYTouchLabel.git"
    },
    "source_files": "*.{h,m}",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This