Latest 0.1.0
Homepage https://github.com/lengmolehongyan/LNProtocolView
License MIT
Platforms ios 7.0
Authors

Version
License
Platform

Example

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);
};

Demo

Requirements

Installation

LNProtocolView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "LNProtocolView"

Author

lengmolehongyan, [email protected]

License

LNProtocolView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LNProtocolView",
    "version": "0.1.0",
    "summary": "A light weight protocol view.",
    "description": "A light weight protocol view.",
    "homepage": "https://github.com/lengmolehongyan/LNProtocolView",
    "screenshots": "http://ac-HSNl7zbI.clouddn.com/QAk1VHlWtxtb6zQR976G1B2Y2ggIDT9OniydzXk3.jpg",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lengmolehongyan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lengmolehongyan/LNProtocolView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "LNProtocolView/Classes/**/*",
    "public_header_files": "LNProtocolView/Classes/**/*.h"
}

Pin It on Pinterest

Share This