TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2016 |
SPMSupports SPM | ✗ |
Maintained by Fan Liu.
An interactive UILabel, can detect URLs, @username, #topic# automatically.
import FFLabel
label.text = "#FFLabel#This is a @FFLabel Demo, access http://github.com/liufan321/fflabel can get the demo project. Follow @liufan2000 to get more information."
class ViewController: UIViewController, FFLabelDelegate
func labelDidSelectedLinkText(label: FFLabel, text: String) {
print(text)
}
#import "FFLabelObjcDemo-Swift.h"
self.label.labelDelegate = self;
self.label.text = @"#FFLabel#This is a @FFLabel Demo, access http://github.com/liufan321/fflabel can get the demo project. Follow @liufan2000 to get more information.";
@interface ViewController () <FFLabelDelegate>
- (void)labelDidSelectedLinkText:(FFLabel * __nonnull)label text:(NSString * __nonnull)text {
NSLog(@"%@", text);
}
FFLabel is released under the MIT license. See LICENSE for details.