Page 93 - 105
Any fool can know. The point is to understand. —Albert Einstein
iOS SDK
(iOS Software Development Kit)
- Storyboard中的視圖控制器是如何與 ViewController.swift 檔內的 ViewController 類別建立連結︖
- showMessage(sender:) 方法中的那段程式碼是什麼意思呢︖它要如何告知 iOS 顯示一個 Hello World 訊息︖
- @IBAction 這個關鍵字是做什麼用的︖
- 「Hello World」按鈕背後藏了什麼︖按鈕是如何偵測到按下事件,並進而觸發showMessage(sender:) 方法呢︖
- 什麼是 viewDidLoad() ︖
- 「執行」(Run)按鈕在 Xcode中是如何運作的︖所謂編譯一個 App是什麼意思︖
你互動的按鈕一般定位為「介面」(interface ),而隱藏在按鈕背後的細節就是「實作」(implementation )。介面與實作之間的溝通則是透過訊息。
物件導向程式(OOP)語言
![螢幕擷取畫面 2022-05-17 165004.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/bd628352-df9a-45c6-8523-fcff2da9d651/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2_2022-05-17_165004.png)
還有一件事要提醒你,在你使用任何框架中的函數時,你必須先匯入(import )它。