Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iPhone 5 and You! by Ameir Al-Zoubi

iPhone 5 and You! by Ameir Al-Zoubi

Ameir discusses upgrading your app to support iPhone 5 at CocoaHeads September in Durham

Triangle Cocoa

September 27, 2012
Tweet

More Decks by Triangle Cocoa

Other Decks in Programming

Transcript

  1. Not The Time To Procrastinate • Early adopters tend to

    pay for apps • Avoid the one star downvotes
  2. Not The Time To Procrastinate • Early adopters tend to

    pay for apps • Avoid the one star downvotes • It’s what Steve would have wanted
  3. Rotation • If all views rotate the same way, simply

    set those in your plist • shouldAutorotateToInterfaceOrientation
  4. Rotation • If all views rotate the same way, simply

    set those in your plist • shouldAutorotateToInterfaceOrientation • supportedInterfaceOrientations
  5. Rotation • If all views rotate the same way, simply

    set those in your plist • shouldAutorotateToInterfaceOrientation • supportedInterfaceOrientations • Checks the root view controller
  6. Rotation • If all views rotate the same way, simply

    set those in your plist • shouldAutorotateToInterfaceOrientation • supportedInterfaceOrientations • Checks the root view controller • Subclass UINavigationController and UITabBarController
  7. Auto Layout • It’s the bee’s knees • iOS 6

    only • New xibs have it enabled by default
  8. The Hard Way • UIViewAutoresizingFlexibleHeight • Resize will occur in

    viewWillAppear not viewDidLoad • ([[UIScreen mainScreen] bounds].size.height == 568)
  9. The Hard Way • UIViewAutoresizingFlexibleHeight • Resize will occur in

    viewWillAppear not viewDidLoad • ([[UIScreen mainScreen] bounds].size.height == 568) • New ratio
  10. The Hard Way • UIViewAutoresizingFlexibleHeight • Resize will occur in

    viewWillAppear not viewDidLoad • ([[UIScreen mainScreen] bounds].size.height == 568) • New ratio • CGRectIntegral
  11. The March of Progress • iPhone 5 supports the armV7s

    instruction set • Most statically compiled frameworks don’t
  12. The March of Progress • iPhone 5 supports the armV7s

    instruction set • Most statically compiled frameworks don’t • lipo -info binaryFile
  13. The March of Progress • iPhone 5 supports the armV7s

    instruction set • Most statically compiled frameworks don’t • lipo -info binaryFile • armV6 support dropped
  14. The March of Progress • iPhone 5 supports the armV7s

    instruction set • Most statically compiled frameworks don’t • lipo -info binaryFile • armV6 support dropped • iOS 4.3 and up
  15. View Life Cycle • viewDidUnload and viewWillUnload no longer called

    • didReceiveMemoryWarning • Don’t release your view
  16. The Light at the End of the Tunnel • UIActivityViewController

    • UICollectionView • NSAttributedString
  17. The Light at the End of the Tunnel • UIActivityViewController

    • UICollectionView • NSAttributedString • UIRefreshControl
  18. The Light at the End of the Tunnel • UIActivityViewController

    • UICollectionView • NSAttributedString • UIRefreshControl • Lots more