Latest 0.1.0
Homepage https://github.com/hexiaoba/XBView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

    XBView *view = [XBView new];
    view.xb_frame(CGRectMake(0, 20, 100, 30))
    .xb_bgColor([UIColor redColor]);
    [self.view addSubview:view];

    XBLabel *label = [XBLabel new];
    label.xb_text(@"label")
    .xb_frame(CGRectMake(20, 80, 0, 40))
    .xb_bgColor([UIColor orangeColor])
    .xb_font([UIFont boldSystemFontOfSize:20])
    .xb_textColor([UIColor purpleColor])
    .xb_sizeToFit();
    [self.view addSubview:label];

    XBButton *button = [XBButton buttonWithType:UIButtonTypeSystem];
    button.xb_frame(CGRectMake(50, 150, 100, 40))
    .xb_setTitleForState(@"button", UIControlStateNormal)
    .xb_setTitleFont([UIFont systemFontOfSize:19])
    .xb_setTitleColorForState([UIColor blueColor], UIControlStateNormal)
    .xb_addTarget(self, @selector(button:), UIControlEventTouchUpInside);
    [self.view addSubview:button];

Requirements

Installation

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

pod 'XBView'

Author

hexiaoba, [email protected]

License

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

Latest podspec

{
    "name": "XBView",
    "version": "0.1.0",
    "summary": "XBView.",
    "description": ""A fast and simple create viewu3001labelu3001button. tool"",
    "homepage": "https://github.com/hexiaoba/XBView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "hexiaoba": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hexiaoba/XBView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "XBView/Classes/**/*"
}

Pin It on Pinterest

Share This