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)
easy to integrate, easy to use!
It is very easy to use.
great component!
with iosButton image generator i've saved time and it is so easy to use :)
thanks a lot
Questions & Comments