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

え!? Storyboard使ってるのにそんな画面遷移のしかたしてるのですか!?

tokorom
April 09, 2014

え!? Storyboard使ってるのにそんな画面遷移のしかたしてるのですか!?

え!? Storyboard使ってるのに
そんな画面遷移のしかたしてるのですか!?

tokorom

April 09, 2014
Tweet

More Decks by tokorom

Other Decks in Technology

Transcript

  1. ͑!? Storyboard࢖ͬͯΔͷʹ
    ͦΜͳը໘ભҠͷ͔ͨͯ͠͠ΔͷͰ͢
    ͔!?
    ॴ ༑ଠ @tokorom
    iOS App Programer
    These are “not” confidential sessions—please diffuse by your blogging and twitter
    potatotips #6

    View Slide

  2. Storyboard͍͍Ͱ͢ΑͶ
    •ը໘ͱը໘͕ૄ݁߹ʹͳΔ
    •Ϟʔμϧද͍ࣔͯͨ͠΋ͷΛφϏήʔγϣϯί
    ϯτϩʔϥʹ੾Γସ͑Δͱ͔ϊϯίʔσΟϯά
    ͰͰ͖Δ

    View Slide

  3. Storyboardొ৔Ҏલ
    •ભҠઌͷViewControllerΛimportͯ͠࢖͏ʢભҠ
    ઌͷViewControllerͱີ݁߹ʣ

    View Slide

  4. Storyboardొ৔Ҏޙ
    •؆୯ͳը໘ભҠ͸ϊϯίʔσΟϯά
    •ͦͷ৔߹ɺભҠઌͷViewControllerʹඇґଘ

    View Slide

  5. ͔͠͠ʂ

    View Slide

  6. ભҠઌʹ஋Λ౉͢৔߹͸࿩͕ผ
    •ભҠઌViewControllerΛimport
    •ભҠઌͷpublicϝιουΛ௨ͯ͡஋Λड͚౉͢

    View Slide

  7. ભҠઌ͕ෳ਺͋Δ৔߹͸஍ࠈ
    •preapreForSegue͕͙ͪΌ͙ͪΌʹ…
    •ੲΑΓͻͲ͍ͷͰ͸ʂʁ

    View Slide

  8. ΅͘͸͜͏ͨ͠΄͏͕
    ྑ͍ͱࢥ͍·͢ʂ

    View Slide

  9. performSegueͷͱ͖ʹ౉͍ͨ͠΋ͷΛ౉͢
    ड͚ͯ͸ཉ͍͠΋ͷ͚ͩऔΓग़͢

    View Slide

  10. ͦΜͳ͜ͱ
    Ͱ͖Δͷʁ

    View Slide

  11. ໌೔͔Β
    Ͱ͖·͢ʂ

    View Slide

  12. TKRIntent
    •ૹΓઌViewControllerʹґଘͤͣͳΜͰ΋౉ͤΔ
    •ґଘ͠ͳ͍ͷͰભҠͷ੾Γସ͑͸ࣗ༝ࣗࡏ

    View Slide

  13. StoryboardΛ
    ૄ݁߹ͷ··ʹ

    View Slide

  14. More Information
    Yuta ToKoRo!
    iOS App Programer!
    @tokorom!
    !
    http://www.tokoro.me/

    View Slide