Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-08-2010, 05:53 PM   #3 (permalink)
wraithstk
Registered Member
 
Join Date: Feb 2010
Posts: 2
wraithstk is on a distinguished road
Default Getting button input

Quote:
Originally Posted by lepetitapps View Post
Add a button to the interface, and when that button is pressed just use:

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com"]]];

Working from the end, backwards, this uses a string ("http://www.example.com") to create an NSURL, which is then used to create an NSURLConnection, which the webView then loads
Thank you - but how do I check that the button is pressed? (I am very new to Objective-C)

Last edited by wraithstk; 03-08-2010 at 07:02 PM.
wraithstk is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,536
Threads: 94,052
Posts: 402,640
Top Poster: BrianSlick (7,979)
Welcome to our newest member, bppnormal11
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:06 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.