0
我需要控制用戶何時在SearchBar中輸入內容。使用文本字段非常簡單,但我找不到使用搜索欄執行此操作的方式,因爲我無法使用IBActions。IBAction的快速搜索欄
我需要控制用戶何時在SearchBar中輸入內容。使用文本字段非常簡單,但我找不到使用搜索欄執行此操作的方式,因爲我無法使用IBActions。IBAction的快速搜索欄
UISearchBar有財產id <UISearchBarDelegate> delegate
。看到協議,你會得到你想要的。