ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
storyboard
 InterfaceBuilder
     Hiroyuki-Fujikawa.
? Hiroyuki-Fujikawa. (@cqa02303)
 ?                     (    )

 ? 2008/ iPhone
 ?
 ? Java (1998 )
?
¡ú




? iOS 5
Storyboard
?
?         nib


?
?   WWDC2011
    Session309
    ¡°Introduction to
    Storyboarding¡±
InitialViewController
?   (    )


?
?   [(UIstoryboard*)
    instantiateInitialViewCont
    roller]

?
    UIViewController.storyb
    oard
?   initial   Controller



?

?
UIStoryboardSegue

?
?   Push,Modal,Custom



?   iPad
sender

1. Segue

2.

     1.              view

     2. controller
Segue


1.

2. performSegueWithIdenti?er: sender:
prepareForSegue:sender:

?            controller

    ? sender
    ? segue.destinationViewController
performSegueWithIdenti
      ?er:sender:

?
    ?
    ? TableView
identi?er                Segue

?   ViewController   Segue



    ?   Segue
            sender
        ViewController
CustomSegue
?
    ?   initWithIdenti?er:sou
        rce:destination:

        ?
    ?   perform

        ?
²õ³Ù´Ç°ù²â²ú´Ç²¹°ù»åʱ´ú¤Î±õ²Ô³Ù±ð°ù´Ú²¹³¦±ðµþ³Ü¾±±ô»å±ð°ù
RelationShip
?
    ?   Navigation

    ?   TabBar



    ¡ú
Segue




viewWillAppear
1.   Segue     Exception

2.     Segue
Segue



? @try   @catch
? User De?ned Runtime Attributes
 ?
   ?      self.segueName



   ?
1.Facebook GMail   UI
?

    ?   view
        Controller


    ?
        ViewController
? ViewController
? WWDC2011 Session102 ¡°Implementing
  UIViewController Containment¡±
ViewController

 ?          ViewController



 ?   View



 ¡ú
View
1.                view1

     1.           Segue          YO!

2.                        view2

     1.   view1              &

     2.   view2
Storyboard
demo
? Segue -perform
? transitionFromViewController:...
? didMoveToParentViewController:
? toView
?
   ¡ú
? viewController
? view
    ¡ú´Ç±è±ð²Ô/³¦±ô´Ç²õ±ð
? viewController
? view
    ¡ú´Ç±è±ð²Ô/³¦±ô´Ç²õ±ð
View        VC




View          VC
View        VC




View          VC
View          VC




View            VC




         View         VC
View          VC




View            VC




         View         VC
? controller controller
? controller.view view
? view
controller
                           View          VC




?   segue           View            VC




                             View         VC
view
                                       View          VC
?   view.frame


                                View            VC
?   view


      ?    insertSubview:belo            View         VC
           wSubview:
view
                          View          VC




                   View            VC
?   frame


                            View         VC
?   view   frame
?      view        frame

?


    http://ero.movie.coocan.jp/iPhone/
    facebookmenu.zip
IB


? Static   Cells TableView

? Scene


? User     De?ned Runtime Attributes
Static Cells TableView
?
        TableView


    ?   datasource delegate




    ?   UITableView
Scene

?   view


        IBOutlet


    ?   TableHeader/Footer


    ?   ARC          strong
User De?ned Runtime
     Attributes
?

    ?   KVO


    ?   Boolean, Number,
        String
User De?ned Runtime
     Attributes
?
    ?

    ?   ºÝºÝߣViewController
               main nav tab
?   ...
?

More Related Content

²õ³Ù´Ç°ù²â²ú´Ç²¹°ù»åʱ´ú¤Î±õ²Ô³Ù±ð°ù´Ú²¹³¦±ðµþ³Ü¾±±ô»å±ð°ù

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n