I know this is a very simple bit of code but I'm new to Objective C and can't find an answer on the forums or a simple answer in the documentation.
I want to push a button which then opens a URL I specify in safari. I just want it to load the URL in safari. My application does not need to stay open.
Do you have to do any clean up when you use this code?
Does your application terminate properly when you open a link
in Safari?
aboy
Works flawlessly for me. Application terminates and forwards you to whatever site you are going to. Issue is if the user returns to your app, you have to store the current state and open the app back up properly.
I'd like to have a table like this one and when you clicked on a "animal" name it would load the Google Map instead of going to the "animal's" info page.
Thoughts? Suggestions? code snippets?
Quote:
Originally Posted by kieran12
I have found the answer myself with some guessing and looking further at the documentation. The code I was looking or was:
I'd like to have a table like this one and when you clicked on a "animal" name it would load the Google Map instead of going to the "animal's" info page.
Thoughts? Suggestions? code snippets?
I'm not sure about the SQL part but to open an address using the maps app you just need to put in the URL from google maps. It also works like this for youtube. If you put in a Youtube URL it will open the Youtube app.
I'm not sure about the SQL part but to open an address using the maps app you just need to put in the URL from google maps. It also works like this for youtube. If you put in a Youtube URL it will open the Youtube app.
Great, thanks! I guess I can put the google map url in the database and then just need to figure out how to have the link code refer to the database cell with the url...
Great, thanks! I guess I can put the google map url in the database and then just need to figure out how to have the link code refer to the database cell with the url...
Yeh, so just pull the data (url) from the database, store it as an NSString and then refer to that NSString instead of a static piece of code in the openURL method.