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 10-21-2011, 04:07 AM   #7 (permalink)
Mattw0909
Registered Member
 
Join Date: Oct 2011
Posts: 1
Mattw0909 is on a distinguished road
Default Accessing a URL from pressing a button

Quote:
Originally Posted by Batman View Post
you do it with this code:
Code:
-(IBAction)yourAction {
	[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://yourWebsiteHere.com"]];
}
Hello,

I am having the same problem. Cannot get my button to access my website.
The code that you have specified us to try, which header does that go into is it ViewController.h or ViewController.m

regards

Matt
Mattw0909 is offline   Reply With Quote
 

» Advertisements
» Online Users: 437
13 members and 424 guests
aqlucky, diane21, elhanche, freewind, guillermotricia, hrushikeshaddon, iram91418, jeroenkeij, LunarMoon, nicsmotherman, poke, ryantcb, Viekiehug
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,610
Threads: 94,084
Posts: 402,790
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Viekiehug
Powered by vBadvanced CMPS v3.1.0

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