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 > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2011, 06:09 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 1
graceindesign is on a distinguished road
Default Xcode crashes in simulator w/ URL links

Hello,
I'm a newbie and I have linked my URL links as followed:

In my .h file I have used

@interface moves : UIViewController {

}
-(IBAction)link1;
-(IBAction)link2;
-(IBAction)link3;
-(IBAction)link4;
-(IBAction)link5;
-(IBAction)link6;

@end

In my .m file I have used

#import "moves.h"


@implementation moves


-(IBAction)link1 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=ogUQDT_l4c8"]];
}

-(IBAction)link2 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=8zAC5cfC8-8"]];
}

-(IBAction)link3 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=hKum5VvybCI"]];
}
-(IBAction)link4 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=sYAJGEtUBn4"]];
}
-(IBAction)link5 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=IcPIJFYmEW4"]];
}
-(IBAction)link6 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=m0Zq_LvHXPE"]];
}

I have linked the URL to buttons in interface builder
I run it in simulator and it crashes!!!
I have a project due for school and I need help.
I'm using pure Xcode and no body seems to be able to help.
graceindesign is offline   Reply With Quote
Old 08-04-2011, 04:23 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 54
tomneo2004 is on a distinguished road
Default

Quote:
Originally Posted by graceindesign View Post
Hello,
I'm a newbie and I have linked my URL links as followed:

In my .h file I have used

@interface moves : UIViewController {

}
-(IBAction)link1;
-(IBAction)link2;
-(IBAction)link3;
-(IBAction)link4;
-(IBAction)link5;
-(IBAction)link6;

@end

In my .m file I have used

#import "moves.h"


@implementation moves


-(IBAction)link1 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=ogUQDT_l4c8"]];
}

-(IBAction)link2 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=8zAC5cfC8-8"]];
}

-(IBAction)link3 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=hKum5VvybCI"]];
}
-(IBAction)link4 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=sYAJGEtUBn4"]];
}
-(IBAction)link5 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=IcPIJFYmEW4"]];
}
-(IBAction)link6 {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=m0Zq_LvHXPE"]];
}

I have linked the URL to buttons in interface builder
I run it in simulator and it crashes!!!
I have a project due for school and I need help.
I'm using pure Xcode and no body seems to be able to help.
what did error say and some method can only work on physical device.
tomneo2004 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 408
11 members and 397 guests
AppleDev, chemistry, Gi-lo, ipodphone, mistergreen2011, pipposanta, QuantumDoja, Retouchable, RobTaku, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,924
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:29 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0