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

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

0d04162c7a3c2907c059a06dbcd23cf4?s=47 tokorom
April 09, 2014

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

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

0d04162c7a3c2907c059a06dbcd23cf4?s=128

tokorom

April 09, 2014
Tweet

Transcript

  1. ͑!? Storyboard࢖ͬͯΔͷʹ ͦΜͳը໘ભҠͷ͔ͨͯ͠͠ΔͷͰ͢ ͔!? ॴ ༑ଠ @tokorom iOS App Programer

    These are “not” confidential sessions—please diffuse by your blogging and twitter potatotips #6
  2. Storyboard͍͍Ͱ͢ΑͶ •ը໘ͱը໘͕ૄ݁߹ʹͳΔ •Ϟʔμϧද͍ࣔͯͨ͠΋ͷΛφϏήʔγϣϯί ϯτϩʔϥʹ੾Γସ͑Δͱ͔ϊϯίʔσΟϯά ͰͰ͖Δ

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

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

  5. ͔͠͠ʂ

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

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

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

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

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

  11. ໌೔͔Β Ͱ͖·͢ʂ

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

  13. StoryboardΛ ૄ݁߹ͷ··ʹ

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