Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 684 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 684 Bytes

XYChainableKit

The category of the UIKit attribute chain programming

For example:

UIView+Chainable

view.XYBackgroundColor([UIColor redColor]).XYFrame(CGRectMake(100, 100, 100, 100));

UILabel+Chainable

label.XYFrame(CGRectMake(100, 250, 50, 40)).XYText(@"Label Text").XYBackgroundColor([UIColor orangeColor]).XYAlpha(0.3).XYTextAlignment(NSTextAlignmentCenter)

UIButton+Chainable

button.XYTitleForState(@"456", UIControlStateNormal).XYBackgroundColor([UIColor orangeColor]).XYFrame(CGRectMake(100, 450, 70, 70)).XYTitleColorForState([UIColor redColor], UIControlStateNormal)

Installation

#import "UIView+Chainable.h"