iOS Button Image Generator

Programmatic button image generation (with caching) and button title customization for iOS applications.

  • Language: Objective-C
    Platform(s): iPhone
  • Released: Feb 24, 2012
    Last Update: Feb 23, 2012

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
Hide

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)

Hide

Demo project as a preview tool

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)

You need to log-in or create an account
  • Create an account
  • Log-in
Please use your real name.
Activation link will be sent to this address.
Minimum 8 characters
Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

X

Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

or Get a quote

for customization or integration services

  • easy to integrate, easy to use!
    Y yeshenpeng
    2 years ago, 0 comments
    Was this helpful?
    Flag
  • It is very easy to use.
    NA Narva Nio Adas
    2 years ago, 0 comments
    Was this helpful?
    Flag
  • great component!
    with iosButton image generator i've saved time and it is so easy to use :)
    thanks a lot
    S salma
    3 years ago, 0 comments
    Was this helpful?
    Flag
Post a comment

Or enter your name and Email
No comments have been posted yet.