利用 cmd + f 在 storyboard 快速找東西

利用 cmd + f (find)我們可以針對某個檔案快速搜尋其中的內容,最常見的莫過於搜尋 swift 程式檔的內容。

不過其實它也可以幫我們搜尋 storyboard 檔的內容呢,比方以下例子:

1 搜尋 controller。

輸入 addroom,找到 class 是 AddRoomViewController 的物件。

2 搜尋 cell 。

輸入 ServiceCell 時,找到 class ServiceCell 的物件。

有時候運氣好我們會找到很多符合條件的對象,就像有時會同時有很多人喜歡我們一樣。如下圖所示,右邊 X 旁的 9 代表找到 9 個對象,點選 < > 可切換下一個 / 上一個。

3 搜尋 segue 。

輸入 Select 找到 id 為 Select Characteristic 的 segue。

4 搜尋 outlet & action。

輸入 segmentedcon 找到 outlet segmentedControl。

彼得潘的 Swift iOS App 開發問題解答集

彼得潘和學生們在開發 iOS App 路上曾經解決的問題集

彼得潘的 iOS App Neverland

Written by

彼得潘的 Swift 程式設計入門,App程式設計入門作者,彼得潘的iOS App程式設計入門,文組生的iOS App程式設計入門講師,http://apppeterpan.strikingly.com

彼得潘的 Swift iOS App 開發問題解答集

彼得潘和學生們在開發 iOS App 路上曾經解決的問題集

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade