Skip to content

zxspring21/foodtracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This article intergrating GitHub Flavored Markdown(GFM) for iOS beginner to understand more basic implementation manners.


Author: Portran


Exhibition

*Result Interface *Edit Interface *Cancel&Save Interface *Add Interface

目錄

Getting Started

  • Jump right in

Building the UI

  • Build a basic UI
    • Create a project in Xcode
    • Identify the purpose of key files that are created with an Xcode project template
    • Open and switch between files in a project
    • Run an app in iOS Simulator
    • Add, move, and resize UI elements in a storyboard
    • Edit the attributes of UI elements in a storyboard using the Attributes inspector
    • View and rearrange UI elements using the outline view
    • Preview a storyboard UI using the Assistant editor’s Preview mode
    • Use Auto Layout to lay out a UI that automatically adapts to the user’s device size
  • Connect the UI to code
    • Explain the relationship between a scene in a storyboard and the underlying view controller
    • Create outlet and action connections between UI elements in a storyboard and source code
    • Process user input from a text field and display the result in the UI
    • Make a class conform to a protocol
    • Understand the delegation pattern
    • Follow the target-action pattern when designing app architecture
  • Work with View Controllers
    • Understand the view controller life cycle and its callbacks (for example, viewDidLoad, viewWillAppear and viewDidAppear)
    • Pass data between view controllers
    • Dismiss a view controller
    • Use gesture recognizers to generate events
    • Anticipate object behavior based on the UIView/UIControl class hierarchy
    • Use the asset catalog to add image assets to a project
  • Implement a custom control
    • Create and associate custom source code files with elements in a storyboard
    • Define a custom class
    • Implement an initializer on a custom class
    • Use UIStackView as a container
    • Understand how to create views programmatically
    • Add accessibility information to a custom control
    • Work with @IBInspectable and @IBDesignable to display and control a custom view in Interface Builder
  • Define a data model
    • Create a data model
    • Write failable initializers for a custom class
    • Demonstrate a conceptual understanding of the difference between failable and nonfailable initializers
    • Test a data model by writing and running unit tests

Working with Table Views

  • Create a Table View
    • Create a second storyboard scene
    • Understand the key components of a table view
    • Create and design a custom table view cell
    • Understand the roles of table view delegates and data sources
    • Use an array to store and work with data
    • Display dynamic data in a table view
  • Implement a Navigation
    • Embed an existing view controller within a navigation controller in a storyboard
    • Create segues between view controllers
    • Edit the attributes of a segue in a storyboard using the Attributes inspector
    • Pass data between view controllers using the prepare(for:sender:) method
    • Perform an unwind segue
    • Use stack views to create robust, flexible layouts
  • Implement Edit and Delete Behavior
    • Differentiate between push and modal navigation
    • Dismiss view controllers based on their presentation style
    • Use segue identifiers to determine which segue is occurring
    • Enable a table view controller’s editing mode.
  • Persist data
    • Create a structure to store string constants
    • Understand the difference between static properties and instance properties
    • Use the NSCoding protocol to read and write data

What's next?

  • Where to Go from Here

iOS and Swift Terminology

  • Glossary

Revision History

  • Document Revision History

About

UI and tableview practice in apple offical website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages