Home
The Apache License, 2.0 is an
open-source license.
Read full license
Copyright Dillion Tan, all rights reserved.
An UIButton enhancement for:
1) For generating filtered images -
a) To use Nimbus memory caching (ref. https://github.com/jverkoey/nimbus), add NIMEMCACHE=1 to Preprocessor Macros, Project Build Settings
b) Generate the filtered image using the UIButton category function
- (UIImage *)generateImageUsingNormalImage:(UIImage *)normalImage
cacheName:(NSString *)cacheName
filterType:(NSString *)kFilterType
filterAttributes:(NSDictionary *)attributes
2) For adjusting line spacing of button text -
Use the button subclass DemoButton and set buttonLabel instead of titleLabel (ref. https://github.com/Tuszy/MTLabel)
Use the demo project as a tool to preview filter effects
1. Replace button images with your own
2. Adjust button frame size
3. Scroll the filter panel to select a filter
4. Lock the filter scroll and adjust sliders to set filter settings
5. Tap on button to view the generated image, or set flash switch to on (alternates between generated and normal image)
great component!- salma, 1 year ago
with iosButton image generator i've saved time and it is so easy to use :)
thanks a lot
Copyright Dillion Tan, all rights reserved.
Questions & Comments
Leave a comment
Log-in now or register for a free account.