From 241c03413075210a1a580b3bae18fab08cc3f1c6 Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Mon, 17 Apr 2017 22:57:24 -0300 Subject: [PATCH] Fix broken Markdown headings --- README.md | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 2b0a194..8519dda 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,24 @@ -##DemoButton +## DemoButton An UIButton enhancement for: - - Programmatic generation of button images using Core Image filters - - Caching the generated images in a Nimbus in-memory cache - - Setting custom line spacing on button text using MTLabel - -###Basic Usage + - Programmatic generation of button images using Core Image filters + - Caching the generated images in a Nimbus in-memory cache + - Setting custom line spacing on button text using MTLabel -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) - - - - - \ No newline at end of file +### Basic Usage + +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) + + + + +