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

iOS_Dev_Workshop_TechStreet.pdf

9949ea4cd54bd477e21ab3273a7b7186?s=47 Mark Wilkinson
November 20, 2013
40

 iOS_Dev_Workshop_TechStreet.pdf

9949ea4cd54bd477e21ab3273a7b7186?s=128

Mark Wilkinson

November 20, 2013
Tweet

Transcript

  1. iPhone Dev workshop step-by-step Wednesday, November 20, 13

  2. Wednesday, November 20, 13

  3. Me Wednesday, November 20, 13

  4. Me Mark Wilkinson Wednesday, November 20, 13

  5. Me Mark Wilkinson UH grad in Comp. Eng. Wednesday, November

    20, 13
  6. Me Mark Wilkinson UH grad in Comp. Eng. Former DotNetter,

    now full- time mobile developer at ChaiOne. Wednesday, November 20, 13
  7. Me Mark Wilkinson UH grad in Comp. Eng. Former DotNetter,

    now full- time mobile developer at ChaiOne. Head of the C#UG for the last 3 years. Wednesday, November 20, 13
  8. create a new Xcode project, single view app Wednesday, November

    20, 13
  9. remove the initial View Controller, add Nav- Contronller in the

    Main.storyboard Wednesday, November 20, 13
  10. Wire-up the Root ViewController • Set the Class of the

    Root VC to be your TSViewController • Change base class of TSViewController to UITableViewController Wednesday, November 20, 13
  11. add UITableView essential methods Wednesday, November 20, 13

  12. set edit and add buttons on NavBar Wednesday, November 20,

    13
  13. add your model objects array, update the tableView methods Wednesday,

    November 20, 13
  14. Setup the AlertViews to enter Gift information Wednesday, November 20,

    13
  15. lets do some refactoring Wednesday, November 20, 13

  16. Where’s the bug? Wednesday, November 20, 13

  17. Check if they chose OK or Cancel Wednesday, November 20,

    13
  18. Create and save your new gift to the collection Wednesday,

    November 20, 13
  19. Reload the tableView to show the new gift Wednesday, November

    20, 13
  20. 2 more bugs, why did the tableView not show it

    added? then a crash, what happened here? Wednesday, November 20, 13
  21. Add ability to delete gifts Wednesday, November 20, 13

  22. Hmm...closing the app loses all your gifts, you need to

    persist Wednesday, November 20, 13
  23. awesome, not read them back each app start Wednesday, November

    20, 13
  24. don’t forget to delete gifts Wednesday, November 20, 13

  25. Onto the drill-down, add a new ViewController, add a WebView

    control+click the prototype cell, then drag onto the added View Controller, choose ‘Push’ segue Wednesday, November 20, 13
  26. Create the backing ViewController class for this details View Controller

    Wednesday, November 20, 13
  27. Wire-up the storyboard view to this view-controller, wire up the

    UIWebView to the interface Wednesday, November 20, 13
  28. name the segue that you just created from the tableViewCell

    to the DetailsViewController set identifier of the prototype cell to “giftCell” Wednesday, November 20, 13
  29. change the cellForRowAtIndexPathMethod create the prepareForSegue method, set the url

    path for the details ViewController Wednesday, November 20, 13
  30. load the URL in the detailsViewController Wednesday, November 20, 13

  31. Bonus, refactor and NSCoding Wednesday, November 20, 13

  32. Move all the saving/persisting logic of gifts out of the

    main ViewController Wednesday, November 20, 13
  33. NSCoder and NSKeyedArchiver Wednesday, November 20, 13

  34. Now use NSKeyedArchiver Wednesday, November 20, 13

  35. Resources • developer.apple.com • objc.io • nsscreencast.com • ChaiOne if

    you want to do this for a living Wednesday, November 20, 13