Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6053033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:59:38+00:00 2026-05-23T07:59:38+00:00

I am new to iPhone development. I am making an application where I need

  • 0

I am new to iPhone development. I am making an application where I need to implement Google Search application and display the results below…

Can anyone please help if there is any tutorial to implement this application. Is there any tutorial?
I think the code given below is right, if so then what else should be added to make it work?

Thank you

NSLog(@"%@",searchBarGoogle.text);
NSString *string1 = [[NSString alloc] initWithFormat:@"%@",searchBarGoogle.text];
NSString *string = [NSString stringWithFormat:@"http://www.google.com/search?q=%@",string1];
NSURL *url = [NSURL URLWithString:string];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:59:39+00:00Added an answer on May 23, 2026 at 7:59 am

    in your .h file

    #import <UIKit/UIKit.h>
    
    @interface eddwedViewController : UIViewController {
        IBOutlet UITextField *searchtextField;
    
    }
    -(IBAction)search;
    
    @end
    

    In your .m file

    - (BOOL)textFieldShouldReturn:(UITextField *)textField
    {
        [textField resignFirstResponder];
            return YES;
    }
    
    -(IBAction)search
    {
        NSString *searchString=searchtextField.text;    
        NSString *urlAddress = [NSString stringWithFormat:@"http://www.google.com/search?q=%@",searchString];
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlAddress]];
    }
    

    In your view controller.xib make a textfield connect delegate with file owners and outlet with its name.
    Make a button and connect it action with search method.

    Let me know if it is working for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new in iPhone Development. I'm creating an application in which i need to
I am new to iphone development and making an application which chooses an image
im new to iphone development.can somebody please tell me how can i putt home
I am new to iphone development. I want to add the google search to
i am new to iphone development.. i am making an application in which table
I am new to iphone development. I have created grouped table and display the
I am new to iPhone development. I am parsing a XML URL and display
I'm new to iPhone development, I need help. I want to download an XML
I am new in iphone development. I am developing an application, which is targeted
Im new to iphone development. here in my application i added pickerview for some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.