0
它的煩人noob又!如何連接文本框和拾取器視圖
所以我試圖開發一個小應用程序來檢查文件夾上的文件。
該文本字段是您的搜索字段。
你有3個選項
文件夾在谷歌一
文件夾B
搜索一個選擇器視圖。
我有一個問題:
1:如何連接搜索欄和用戶選擇一個按鈕,當用戶點擊該按鈕的選秀權,可以說按鈕搜索用戶輸入在谷歌?
我已經申請了2次瀏覽。
一個用戶輸入信息,另一個顯示該信息。
我的代碼會是這樣的..
- (IBAction)buttonSearch:(id)sender {
self.userSearch = self.searchField.text; ///Users input on the search field
NSString *searchString = self.userSearch;
///I know Im missing the connection to the button with the pickView, how could I do that too?////
///Here should be something like go to google(or whatever choice the user made on pickview) and put the string on the search bar and hit search/// <---How do I do this too..? *****
}
@end
感謝您的幫助,我知道它痛回答這樣愚蠢的問題....:/ 有一個愉快的一天!
你有沒有爲你的searchField和選擇器創建IBOutlets性質? – Hackmodford
@Hackmodford我沒有很好的先生,在哪裏和如何指定網點? – drodri420