Skip to content

LuciusLu/DeformationButtonSwift

Repository files navigation

demo

Alt text Alt text


code

let deformationBtn = DeformationButton(frame: CGRectMake(100, 100, 140, 36), color: getColor("e13536"))
self.view.addSubview(deformationBtn)

deformationBtn.forDisplayButton.setTitle("微博注册", forState: UIControlState.Normal)
deformationBtn.forDisplayButton.titleLabel?.font = UIFont.systemFontOfSize(15);
deformationBtn.forDisplayButton.setTitleColor(UIColor.whiteColor(), forState: UIControlState.Normal)
deformationBtn.forDisplayButton.titleEdgeInsets = UIEdgeInsetsMake(0, 6, 0, 0)
deformationBtn.forDisplayButton.setImage(UIImage(named:"微博logo.png"), forState: UIControlState.Normal)

deformationBtn.addTarget(self, action: "btnEvent", forControlEvents: UIControlEvents.TouchUpInside)

About

Share loading button by Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages