“top layer guide is deprecated science iOS 11” Waring handling
Published in
May 7, 2021
(layer guide, Storyboard)
在Xcode 9以前創建的開專案時
Storyboard的View使用Top Layout Guide 和 Bottom Layout Guide
而在Xcode 9 後新開的專案,預設採用 Safe Area
不再是 Top Layout Guide 和 Bottom Layout Guide
因此會出現下圖警示訊息
top layer guide is deprecated science iOS 11
可以參考本文
點ViewContoller
勾選Use Safe Area Layout Guides
畫面直接使用Safe Area
一般來說無痛轉移,不會有問題