Skip to content

Instantly share code, notes, and snippets.

@raheelahmad
raheelahmad / gist:1100970
Created July 23, 2011 03:40
Creating arbitrarily-colored icons from a black-with-alpha master image (iOS)
// Usage example:
// input image: http://f.cl.ly/items/3v0S3w2B3N0p3e0I082d/Image%202011.07.22%2011:29:25%20PM.png
//
// UIImage *buttonImage = [UIImage ipMaskedImageNamed:@"UIButtonBarAction.png" color:[UIColor redColor]];
// .h
@interface UIImage (IPImageUtils)
+ (UIImage *)ipMaskedImageNamed:(NSString *)name color:(UIColor *)color;
@end

Friday, 03.04.11

  • "cellspacing", "cellpadding"
  • block and inline tags
    • <p>, <h1>, <img>, <em>

Forms

  • controls, widgets
    • text fields, radio, checkbox, buttons, menus, etc.