NU - iOS App Development
Ctrlk
  • Welcome!
  • Getting Started
    • Preparing your Development Environment
    • Setting up Xcode
  • Swift: the programming language
    • 1. Variables, Data types, and more.
  • 2. Collections
  • 3. Operators
  • 4. Conditionals
  • 5. Loops
  • 6. Functions
  • 7. Closures
  • 8. Optionals
  • 9. Creating your own data types
  • 10. Protocols
  • 11. Sorting Arrays
  • iOS Development with UIKit
    • 1. Creating our first app
  • 2. Designing without Drag and Drop
  • 3. Our first Multi-screen App
  • 4. Separating code: View from the Controller
  • 5. UITableView, and more
  • 6. UIMenu, Picking Images from Gallery and Camera, and UIImageView
  • 7. Notification Center
  • 8. UIScrollView
  • 9. Cocoa Pods
  • 10. Making the app communicate over the Internet
  • 11. Working with APIs and JSON
    • 11.1. The JSON API for the Contact App
    • 11.2. App11: Getting All the Contact Names (getall endpoint)
    • 11.3. App11: Getting the Details of a Selected Contact (details endpoint)
    • 11.4. 'Must Do's While Decoding JSON adopting Codable
    • 11.5. App11: Add a new Contact
    • 11.6. Adding Accessory Button to Table View (Edit/Delete a Contact)
    • 11.7. Reference Code
    • 11.8. Decluttering codes from View Controller (Recommended Read)
  • 12. Firebase Authentication and Firestore
  • 13. Firebase Storage
  • 14. UIMapKit: Working with Location and Maps
  • Decluttering Code
    • 1. Writing clean code for Asynchronous operations
  • Useful Tools and UI Elements
    • Hiding Keyboard when tapped outside
    • Slide Up the View for On-screen Keyboard
    • Embed Navigation Controller from code (Not Storyboard)
    • Saving small data when the App is not running (session or other state variables)
    • Stack View
    • Tab Bar Controller
    • Search Bar
    • Bottom Sheet View: Modal Presentation
Powered by GitBook
On this page
  1. 11. Working with APIs and JSON

11.7. Reference Code

283KB
App11.zip
archive
Open
Previous11.6. Adding Accessory Button to Table View (Edit/Delete a Contact)Next11.8. Decluttering codes from View Controller (Recommended Read)

Last updated 1 month ago

Was this helpful?

Was this helpful?