關于斯坦福的這個系列課程的所有筆記著觉,都在這個文集里:Developing Apps for iOS9
實際上課時間為:2016年3月28日村生。課程發(fā)布在iTunes上的時間是2016年4月19日,課程地址饼丘。
一趁桃、課程內(nèi)容:
簡單一提MVC,下節(jié)課詳細說肄鸽。
介紹:iOS體系卫病,Xcode各個部分。
Demo講解:
- 拖一個UIButton控件典徘,創(chuàng)建Action連接
@IBAction func touchDigit(sender: UIButton)
蟀苛,然后在Storyboard中復制粘貼10個UIButton控件,組成數(shù)字0-9逮诲。
let digit = sender.currentTitle!
創(chuàng)建Label帜平,Outlet連接幽告。
解決第一次點擊數(shù)字的開始顯示數(shù)字0的問題
import UIKit
class ViewController: UIViewController {
var userIsInTheMidlleOfTyping = false
@IBOutlet weak var display: UILabel!
@IBAction func touchDigit(sender: UIButton) {
let digit = sender.currentTitle!
if userIsInTheMidlleOfTyping {
let textCurrentlyInDisplay = display.text!
display.text = textCurrentlyInDisplay + digit
} else {
display.text = digit
}
userIsInTheMidlleOfTyping = true
}
}
- 創(chuàng)建π運算符Button,然后創(chuàng)建Action連接罕模,未結(jié)束评腺,下節(jié)課繼續(xù)π。
二淑掌、課后作業(yè):
- 看教程視頻
- 回顧 Lecture 1 PPT 里的知識點
- Reading 1:Intro to Swift
三蒿讥、課后作業(yè)完成記錄:Reading 1:Intro to Swift
閱讀 Swift Programming Language文檔。作業(yè)的閱讀量很大抛腕,尤其是之前沒有看過 Swift 編程語言芋绸,如果之前看過學過,那么這節(jié)課的作業(yè)就會非常輕松担敌。
紅色:重要且難懂摔敛,黃色:重要但不難理解,綠色:重要且簡單基礎全封,灰色:這節(jié)課還不需要看的知識點
1. The Basics
The Basics
2. Basic Operators
Basic Operators
3. Strings and Characters
Strings and Characters
4. Collection Types
Collection Types
5. Control Flow
Control Flow
6. Functions
Functions
7. Closures
Closures
8. Enumerations
Enumerations
9. Classes and Structures
Classes and Structures
10. Properties
Properties