$30 off During Our Annual Pro Sale. View Details »

Storyboarding and using Appearance Proxy for iOS

Storyboarding and using Appearance Proxy for iOS

Storyboarding and using Appearance Proxy for iOS to customize the appearance of common UIKit controls and how to add a custom font for navigation bars.

kylehilla

May 01, 2013
Tweet

Other Decks in Programming

Transcript

  1. SEGUES • PUSH - EXACTLY HOW IT SOUNDS • MODAL

    - covers the starting view controller with optional animations • CUSTOM - animate it yourself!
  2. UIAppearance Protocol • appearance - change appearance of UIKit controls

    globally • appearanceWhenContainedIn - change appearance of UIKit controls for an individual ViewController
  3. Custom Fonts • I struggled with adding a font •

    Every tutorial was adding a custom font that was already in the system and didn’t reveal crucial steps • There are many steps to something you’d think should be simple
  4. The steps . . . 1.Add the font to your

    project 2.Add the font to new row in the plist as: Fonts provided by application 3.Add the font to Target> Build Phases> Copy Bundle Resources 4.Discover the actual Post Script name of the font in Font Book ... or use the code to print all of the font names in the system to Output
  5. Print the Font List NSArray *familyNames = [UIFont familyNames]; for(

    NSString *familyName in familyNames ){ printf( "Family: %s \n", [familyName UTF8String] ); NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName]; for( NSString *fontName in fontNames ){ printf( "\tFont: %s \n", [fontName UTF8String] ); } }