彼得潘的iOS App開發便利貼
介紹
thread
sleep
App畫面
Interface Builder
選取多個元件
設定constraint時也同時更新frame
清除畫面上所有的constraint
移動元件時,不會自動變成別的元件的subview
複製UI元件
利用Embed in將多個view嵌入自動生成的容器
Navigation Controller
bar上back button的圖片
利用navigation controller顯示bottom bar
button
button圖片維持比例縮放
Collection View
使用collection view controller快速建立格子狀版面
flow layout的動態cell高度
Color
顏色的透明度
Stack View
Stack View的動畫
View
Layout Margin
Input
確保使用者輸入內容的Auto-enable Return Key
Auto Layout
設定元件1:1正方形比例的option密技
Image
插上Xcode Emoji內建的世界國旗
Swift
程式碼的自動完成
顯示變數的型別
注解快速鍵
array
同時得到array成員和index
反轉array
array是否包含某個成員
dictionary轉array
set
從array建立set
是否2個set完全沒有成員重覆
字串
字串轉數字
利用appendContentsOf相加字串
當enum的raw value為字串時,自動生成和成員同名的raw value
method呼叫其實是將instance當參數傳入
控制property setter的權限
optional的常數不會預設初始為nil
客製化物件列印的內容
assert and precondition
struct可透過extension定義init, 而且保留memberwize initializer
struct的memberwise initializer
定訂可以比較是否相等的型別
定訂可以比較的型別
讓程式碼變美的自動縮排 : ctrl + i
Xcode
Help
點選程式碼查詢相關資訊
讓App以4吋的畫面放大顯示在4.7和5.5吋
Xcode的git commit
錯誤:Could not find Developer Disk Image
模擬器
將圖片加入模擬器的Photos App
在模擬器上下捲動表格畫面
刪除Xcode佔據大量空間的Derived Data
Playground
自動變身UIImage物件的Playground圖片
Audio
在背景持續播音樂
Powered by
GitBook
自動變身UIImage物件的Playground圖片
自動變身UIImage物件的Playground圖片
加入圖片到Playground竟像呼吸一樣簡單,只要將圖片拖曳進去,它就會神奇的變身成美少女戰士,哦,不是啦,是變身為UIImage物件 !
results matching "
"
No results matching "
"