CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Dan Williams.
A UIButton replacement, that has an inset fill when highlighted. Allows for styling of the following:
tintColor
property.The class is also designed for use in IB, and is completely IB_Designable, and every property IBInspectable. This class uses AutoLayout and requires a constraints based layout.
Create a new instance of DJWInsetFillButton, just as you would any other view.
DJWInsetFillButton *button = [[DJWInsetFillButton alloc] init];
button.title = @"Hello, world!";
[self.view addSubView: button];
The button's intrinsic content size is updated when the button's title changes, so that it can always resize itself appropriately.
Simply add DJWInsetFillButton
to your Podfile if you're using Cocoapods. Alternatively, add DJWInsetFillButton.h
and DJWInsetFillButton.m
to your project. Included in this repository is a demo application, showing the project in action.
DJWInsetFillButton is licensed under the MIT license.