A light weight agree or not protocol view.
MIT License
To run the example project, clone the repo, and run pod install
from the Example directory first.
LNProtocolView *protocolView = [[LNProtocolView alloc] initWithFrame:CGRectZero];
protocolView.backgroundColor = [UIColor groupTableViewBackgroundColor];
[protocolView setPrefixStr:@"这里是前缀"
suffixStr:@"这里是后缀哈哈哈"
protocolArray:@[@{ProtocolViewNameKey:@"《这里是协议》",
ProtocolViewLinkKey:@"https://www.baidu.com"}]
textColor:[UIColor darkTextColor]
protocolTextColor:[UIColor blueColor]
textFont:[UIFont systemFontOfSize:15]];
[self.view addSubview:protocolView];
protocolView.frame = CGRectMake(10, 100, 260, 10);
protocolView.jumpBlock = ^(NSString *urlStr) {
NSLog(@"%@", urlStr);
};
LNProtocolView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LNProtocolView"
lengmolehongyan, [email protected]
LNProtocolView is available under the MIT license. See the LICENSE file for more info.