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

  • Home
  • SEARCH
  • 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 7766235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:21:47+00:00 2026-06-01T15:21:47+00:00

I am customizing an open source QR Reader to take the text from a

  • 0

I am customizing an open source QR Reader to take the text from a TextView and either do a Google search or open the text in a browser. The customer is adamant about using Google search only.

I have two buttons. “Google” and “Web”. The code indicates how they work.

I was thinking of appending “http//www.google.com/search='” with “resultText.text'”
But I don’t know the correct format on how to do that with a google search.

The code I have to do this thus far is:

- (IBAction)openBrowser :(id)sender
{
    if ([[sender currentTitle] isEqualToString:@"Google"]) {

        NSURL *url = [NSURL URLWithString:resultText.text];
        [[UIApplication sharedApplication] openURL:url];

}
    else if([[sender currentTitle] isEqualToString:@"Web"]){
        NSURL *url = [NSURL URLWithString:resultText.text];
        [[UIApplication sharedApplication] openURL:url];
    }
}

I tried googling this, but as you can imagine the results were nothing close to what I was looking for. I kept getting Google/Apple search bar headlines from the recent news.

Cheers!

  • 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-06-01T15:21:48+00:00Added an answer on June 1, 2026 at 3:21 pm

    I found the answer to my own question after a more extensive search.

    http://www.our-picks.com/archives/2007/01/30/google-search-urls-revealed-or-how-to-create-your-own-search-url/

    Here is the code I added in:

    if ([[sender currentTitle] isEqualToString:@"Google"]) {
    NSMutableString *googleUrl = [[NSMutableString alloc] initWithString:@"http//www.google.com/search?q="];
    [googleUrl appendString:resultText.text];
    
    NSURL *url = [NSURL URLWithString:googleUrl];
    [[UIApplication sharedApplication] openURL:url];
    

    }

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

Sidebar

Related Questions

I'm working on customizing a couple of open source projects in ways that are
I'm customizing an open-source .NET application. It compiles perfectly fine. But forms and controls
I currently am customizing an open-source forum to suit an organisation I do volunteer
I am customizing an open source Perl script for some db backup. I don't
I am working on customizing a closed source client application. It has a tree
Ok so I've downloaded an open source project that I'm looking at customising for
Has anybody succeeded in customizing the Places Bar for VS 2008? My customizations from
I'm customizing a color picker's default showing colors which will be used as background
We are customizing workflow approval form to display the associated list item fields. This
I am interested in customizing the authentication method for a Joomla website. There is

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.