作業 9 Outlet & Action:瘋狂購物 App — UIStepper 和數字變字串練習
Published in
3 min readAug 20, 2020
目的:
練習設置 IBAction :UI 元件 Stepper (各項商品訂購數量)
練習設置 IBOutlet :顯示總金額 Total$、顯示商品訂購數
練習 UI 元件 Scroll View, Label, Button, Text Field, Stepper 並與 IBAction & IBOutlet 連動
後記:
其實原本想做的是多頁式的購物 app ,但試了兩天還是搞不定,只好先做這個簡單版本當作練習
(多頁式的購物 app 需使用 Cocoa Touch Class 新增類別給一個 TableViewController.swift 再搭配 Container View, Table View Controller, 及 UI Segmented Control 作跳頁)