Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

iOS Design to Code - Code

936 views

Published on

This course have 2 parts (Design & Code).
Learning iOS dev from zero. There is many things you can do without code.

Do more with less

1. Want vs. need
2. No code is good code
3. Do not start from 0
4. Keep step small

Published in: Engineering
  • Be the first to comment

iOS Design to Code - Code

  1. 1. iOS developer http://about.me/gliyao Liyao Chen design > code
  2. 2. Objective do more with less
  3. 3. Code Want vs. need No code is good code Do not start from 0 Keep step small
  4. 4. Cocoa Framework Basic Custom class @IBoutlet & @IBAction UISegue Inheritance hierarchy
  5. 5. Custom class
  6. 6. Custom class
  7. 7. IBOutlet & IBAction
  8. 8. UISegue
  9. 9. Inheritance hierarchy
  10. 10. Inheritance hierarchy Enter viewController - viewDidLoad - viewWillAppear - viewWillLayoutSubviews - viewDidLayoutSubviews - viewDidAppear Leave viewController - viewWillDisappear - viewDidDisappear
  11. 11. Rule pair-programming beat the monster
  12. 12. Mission 1 Setting page with less code
  13. 13. Wireframe of setting page
  14. 14. Steps • Embed in UINavigationController (two ways) • UITableViewController with static cells (basic and customize style). • Create show segue with control + drag from cell • Connect views with IBOutlet and change its property value. • Simple autolayout (pin view in center of viewController) • Simple class SRAuthor to setup author page
  15. 15. Mission 2 Article list page with JSON file
  16. 16. Wireframe of article list page
  17. 17. Steps • Read JSON file as dictionary (Break point and check out data) • List article title with dynamic cells in UITableViewController (Delegate pattern, reuse cell with id). • Configure cell with article JSON data • Pass params to another viewController with segueId

×