tags:

views:

190

answers:

2

I have an app that I want to interact with a web page. (i'm a nube). Basically I want to press a button and the web page will open in a new view...

Thanks...

Sorry I wasn't clear, I am developing on a mac for an iphone. Currently I have a "locate me" app that displays your Latitude and Longitude. I want to use those variables to populate 2 of the blanks on a php web page/form I have developed.

I have added a label and button to my current app, when the button is pressed the URL with the Lat and Long (as passed vars) are displayed in the label. I want those vars to appear on my web page. Hope this is clearer....


Solved !!!!! I just added these lines of code I found at http://snipplr.com/view/8475/open-url-in-safari/

NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ];

[[UIApplication sharedApplication] openURL:url];

A: 

What you want is not clearly understood. What is new view is new window or talking about pop ups? You clarify on this first.

asb
A: 

Since you tagged it as xcode, I assume you are using a Mac? Or is this an iPhone question? Either way, I'd suggest looking in the /Developer/Examples/WebKit folder on your development box. It contains a number of samples for displaying web pages. You'd then link the button to opening the web page by creating a new web document.

Norman