-1

Im trying to make an app that opens the safari app and searches for a specific keyword. I know how to open Safari and search a URL, but is there any way to do it with just a keyword?

Trip Phillips
  • 430
  • 1
  • 5
  • 18

1 Answers1

2

Just generate a URL with a specified keyword. Assuming you'll use Google.

Example, user searches "David Bowie"

You load this url https://www.google.com/#q=davidbowie

There are a couple good methods for removing spaces here.

Community
  • 1
  • 1
Casey Wagner
  • 1,528
  • 1
  • 11
  • 12