An easy-to-use view to display markup text.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MXLinkLabel-Demo
MXLinkLabel
LICENSE
MXLinkLabel.podspec
README.md

README.md

MXLinkLabel-in-Objective-C

MXLinkLabel is an easy-to-use view to display markup text.

Installation with CocoaPods

pod 'MXLinkLabel', '~> 1.0.4';

Usage

[[self linkLabel] setMarkupText:@"<h1>MXLinkLabel</h1>This is a <a href=\"http://www.meniny.cn/\">sample link</a>."];
[[self linkLabel] setLinkTapHandler:^(NSURL * _Nullable url) {
    if (url != nil) {
        [[UIApplication sharedApplication] openURL:url];
    }
}];