自從更新Xcode11之後,每個開啟新專案的小夥伴都會發現多了一個SceneDelegate,而AppDelegate裡的程式碼也不盡相同,最大的問題就是只能與iOS13以上的版本相容,本文就手把手地教小夥伴們怎麼創建與iOS12…
做了一個陽春的畫面來展示如何偵測UITableView上的按鈕點擊事件,這次介紹如何使用tag。
「Class跟Struct的差別是?」
剛開始學Swift時有學到ScrollView,最近工作需要又碰到了ScrollView,才發現原來我根本沒學會,經過Google還有請教前輩以後終於學會了,在此整理給大家!
最近開始工作以後深刻感受到基本功的重要,於是有空就再重新學一次基礎,久沒更新,就把我對Class的認識跟大家分享吧!
接續上一篇:
接續上一篇,這篇要解決畫面打橫以後畫面會跑掉的狀況。
之前都是用Storyboard拉畫面,這次要用程式碼做這樣的畫面: