Skip to content

The category of the UIKit attribute chain programming

Notifications You must be signed in to change notification settings

HeathHsia/XYChainableKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

The category of the UIKit attribute chain programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published