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

Creating in app parts with ChildViewController ...

Creating in app parts with ChildViewController and Storyboard

With iOS5 SDK, you can use StoryBoard to create and Manage custom parts for the View. This slide explains Why its worth to use it and How you can implement this feature.
This presentation is made by handwriting Ideamap using NeuNotes+ for iPad.

Tomohisa Takaoka

July 21, 2012
Tweet

More Decks by Tomohisa Takaoka

Other Decks in Technology

Transcript

  1. WHAT IS IT? WHY Creating In App Common Parts with

    ChildViewController and Storyboard U @tomohisa 7/21/2012 iPhone_dev_jp
  2. LESS CODE, LESS BUGS! Storyboard Graphical UI Design iOS5+ a.k.a.

    ContainerViewController ChildView Controller iOS5+ W H O AM I ? WHAT IS IT? More programming services apps... WHY? Creating In App Common Parts with ChildViewController and Storyboard Overview ViewContro"er Methods... - viewWillAppear: - viewDidLoad: - viewWillAppear: - didReceiveMemoryWarning - willRotateToInterfaceOrientation:duration ... and so on - will be called!!! Reusable. Can be seen and edit in same storyboard file. Can be put same parts on multiple ViewController. Can design static UITableView for UIViewController Can design page for UISCrollView, UIPageViewController HOW TO USE? Design in Storyboard. Write code in Xcode. Notes. W rapping up... Question? Good time to ... Let's enjoy iOS5 Programming!! See thru full screen parts. Set appropriate size. - Simulated Metrics - Size - Freeform - Resize at Size Navigator Place ViewController anywhere in Storyboard Set identifier!!! Place dummy view. - Optional. 1. Add ChildView 2. Remove ChildView 3. Send / Receive Message - Protocol - Property - viewController.childViewControllers - viewController.parentViewController - Always need to add viewController AND view. - Supported animated transition. - too much view, too slow. Special Thanks: http://www.jtechs.com http://www.nextberry.jp
  3. LESS CODE, LESS BUGS! Storyboard Graphical UI Design iOS5+ a.k.a.

    ContainerViewController ChildView Controller iOS5+ W H O M WHAT IS IT? C i
  4. a. wController dView Controller iOS5+ IT? WHY? In App Common

    Parts ewController nd ryboard Overview ViewContro"er Methods... - viewWillAppear: - viewDidLoad: - viewWillAppear: - didReceiveMemoryWarning - willRotateToInterfaceOrientation:duration ... and so on - will be called!!! Reusable. Can be seen and edit in same storyboard file. Can be put same parts on multiple ViewController. Can design static Can design page for See thru full screen parts.
  5. HY? ew ViewContro"er Methods... - viewWillAppear: - viewDidLoad: - viewWillAppear:

    - didReceiveMemoryWarning - willRotateToInterfaceOrientation:duration ... and so on - will be called!!! Reusable. en and edit toryboard e. Can be put same See thru full
  6. WHY? ViewContro"er Methods... - didReceiveMemoryWarning - willRotateToInterfaceOrientation:duration ... and so

    on - will be called!!! Reusable. Can be put same parts on multiple ViewController. Can design static UITableView for UIViewController Can design page for UISCrollView, UIPageViewController See thru full screen parts. Place ViewController
  7. Creating In App Common Parts with ChildViewController and Storyboard Reusable.

    Can be put same parts on multiple ViewController. Can design static UITableView for UIViewController Can design page for UISCrollView, UIPageViewController HOW TO USE? Design in Storyboard. Write code in Xcode. Notes. .. See thru full screen parts. Set appropriate size. - Simulated Metrics - Size - Freeform - Resize at Size Navigator Place ViewController anywhere in Storyboard Set identifier!!! Place dummy view. - Optional. 1. Add ChildView 2. Remove ChildView 3. Send / Receive Message - Protocol - Property - viewController.childViewControllers - viewController.parentViewController - Always need to add viewController AND view. - Supported animated transition. - too much view, too slow.
  8. Can design static UITableView for UIViewController Can design page for

    UISCrollView, UIPageViewController Design in Storyboard. ode in de. Set appropriate size. - Simulated Metrics - Size - Freeform - Resize at Size Navigator Place ViewController anywhere in Storyboard Set identifier!!! Place dummy view. - Optional.
  9. Write code in Xcode. Set appro - Simula - Size

    - Fre - Resize Place du - Option 1. Add ChildView 2. Remove ChildView 3. Send / Receive Message - Protocol - Property - viewController.childViewControllers - viewController.parentViewController .
  10. - Freeform - Resize at Size Navigator Place dummy view.

    - Optional. 1. Add ChildView 2. Remove ChildView
  11. U Write code in Xcode. Notes. 1. Add ChildView 2.

    Remove ChildView 3. Send / Receive Message - Protocol - Property - viewController.childViewControllers - viewController.parentViewController to add r AND view. nimated w, too slow.
  12. Write Xc Notes. 3. Send / R Message - Protocol

    - Property - viewController.c - viewController.p - Always need to add viewController AND view. - Supported animated transition. - too much view, too slow.