Skip to content

Instantly share code, notes, and snippets.

View scelis's full-sized avatar

Sebastian Celis scelis

View GitHub Profile
@scelis
scelis / gist:335253
Created March 17, 2010 14:00
Retrieve a list of all fonts available on the iPhone.
NSArray *familyNames = [UIFont familyNames];
for (NSString *familyName in familyNames)
{
NSLog(@"Family: %@\n", familyName);
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName];
for (NSString *fontName in fontNames)
{
NSLog(@"\tFont: %@\n", fontName);
}
}
@scelis
scelis / SCAppUtils.h
Created December 21, 2009 18:11
Add a background image to your UINavigationBar.
#import <UIKit/UIKit.h>
#define kSCNavigationBarBackgroundImageTag 6183746
#define kSCNavigationBarTintColor [UIColor colorWithRed:0.54 green:0.18 blue:0.03 alpha:1.0]
@interface SCAppUtils : NSObject
{
}
+ (void)customizeNavigationController:(UINavigationController *)navController;
@scelis
scelis / chpwd_update_git_vars.sh
Created November 27, 2009 20:16
Add git information to your ZSH prompt.
update_current_git_vars