how to share a text field with an web based one?

Discussion in 'iOS Development' started by studio:19, Jun 17, 2009.

  1. studio:19

    studio:19 New Member

    Joined:
    Jun 3, 2009
    Messages:
    3
    Likes Received:
    0
    how to share a text feild with an web based one?

    for instance...
    [this is just an example]
    If I were to make an app that shared the same text field with google.com, when a user types in something and submits it, it will appear as if they typed it in google...

    Let me know if my explanation was unclear, thnx
  2. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    Google you can just add the textfield's text to the end of the url to search for that item.
    Code:
    NSURL * url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.google.ca/search?hl=en&q=%@", textField.text]];
    Not sure about using any text field though.

Share This Page