ios design to code - code
DESCRIPTION
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 smallTRANSCRIPT
![Page 2: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/2.jpg)
Objectivedo more with less
![Page 3: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/3.jpg)
CodeWant vs. need No code is good code Do not start from 0 Keep step small
![Page 4: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/4.jpg)
Cocoa Framework BasicCustom class @IBoutlet & @IBAction UISegue Inheritance hierarchy
![Page 5: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/5.jpg)
Custom class
![Page 6: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/6.jpg)
Custom class
![Page 7: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/7.jpg)
IBOutlet & IBAction
![Page 8: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/8.jpg)
UISegue
![Page 9: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/9.jpg)
Inheritance hierarchy
![Page 10: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/10.jpg)
Inheritance hierarchyEnter viewController - viewDidLoad - viewWillAppear - viewWillLayoutSubviews - viewDidLayoutSubviews - viewDidAppear
Leave viewController - viewWillDisappear - viewDidDisappear
![Page 11: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/11.jpg)
Rulepair-programming beat the monster
![Page 12: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/12.jpg)
Mission 1Setting page with less code
![Page 13: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/13.jpg)
Wireframe of setting page
![Page 14: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/14.jpg)
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
![Page 15: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/15.jpg)
Mission 2Article list page with JSON file
![Page 16: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/16.jpg)
Wireframe of article list page
![Page 17: iOS Design to Code - Code](https://reader034.vdocuments.us/reader034/viewer/2022052508/559427841a28ab07418b4582/html5/thumbnails/17.jpg)
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