mxh-mo / MOOImageButton

create image on top/left/bottom/right at button

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MOOImageButton

CI Status Version License Platform

Example

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

Installation

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

pod 'MOOImageButton', '0.1.0'
pod install
import MOOImageButton

let button = MOOImageButton(imagePosition: .top, imgTitleMargin: 6.0)
button.setTitle("top image", for: .normal)
button.setImage(UIImage(named: "moo_like"), for: .normal)
button.frame = CGRect(x: 50.0, y: 100.0, width: 100.0, height: 100.0)
view.addSubview(button)

Author

994355869@qq.com

License

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

About

create image on top/left/bottom/right at button

License:MIT License


Languages

Language:Swift 86.2%Language:Ruby 13.8%