GitHub 連結收藏箱
目錄
ㄧ、原生功能測試:分享、瀏覽網頁(Safari
/ WebView
)、拍照 / 圖庫、寄 Email
二、用 WebView 開啟 Home Assistant 網頁(免呈現網址
)
三、拍照
/ 圖庫
功能,並將照片存在 imageView 中
四、guard let _ = viewIfLoaded?.window, presentedViewController == nil else { return }
,要 show 一個 View 需要先檢查
五、物件
、物件
矩陣、字典("String": "物件
"),KeyPath
存取及高階函數,filter、map、compactMap、reduce、sort 練習
六、MVP 練習,取得來自 URL
的 json 資料,或本地檔案
的 json 資料來顯示。VC 透過 conform delegate 的方式來實作 function(如 data 存入
、show Alert
),而 P 這個 class 已有取回資料
的方法,藉由 P 的實例
去使用這個 method 取回資料。
七、客製化 AlertView(需加入 backaroundView),用 Xib 及 Programming,Xib 搭配 IBAction、Delegation 實作 backgroundView removeFromSuperView;Programming 需使用逃逸閉包