その迷惑な初心者が再び!
そこで、フォルダ内のファイルをチェックする小さなアプリを開発しようとしていました。
テキストフィールドは検索フィールドです。
3つのオプションがあるピッカービューがあります
フォルダA
フォルダB
Googleで検索します。
質問があります:
1:ユーザーが選択した検索フィールドとピックをボタンに接続して、ユーザーがボタンをクリックしたときに、ボタンがGoogleで入力されたユーザーを検索するとします。
2つのビューのアプリケーションを作成しました。
1つはユーザーが情報を入力し、もう1つはその情報を表示します。
私のコードは次のようになります。
- (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
助けてくれてありがとう、私はそのようなばかげた質問に答えるのが苦痛であることを知っています....:/良い一日を!