views:

33

answers:

2

This is probably some rookie mistake, but I can't figure it out. I've established a button within my app to recall a link in safari. From my method file it looks like this:

Obj C Code:

-(IBAction)linkSafari{

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://en.wikipedia.org/"]];
}

I linked it up in IB and all seems okay.

When I create this same setup as a single view app it works great, but whenever I click it in my multiview app it's an automatic crash. Acts the same way on both my simulator and physical ipod.

Is there an endless list of places I could have screwed up or is there a certain area I should look into?

A: 

I don't think the problem is in that particular function, but on the way you create the views and viewcontrollers

camilin87
I think you're right, but I don't know how to determine where the issue lies.
fender1165
you'd better post here more code
rano
this is rather vague but try making a multiview application example where the buttons only perform a dummy NSLog call. once you have the multiview framework working you can start doing some other stuff.there are some easy tutorials in youtube
camilin87
This might help explain my situation more: http://screenr.com/Tnr
fender1165
that being the case, you are gonna have to debug you application, the call stack window will definitively helphttp://macdevelopertips.com/xcode/xcode-debugging-reset-current-line.html
camilin87
Alright, I'll keep trying to figure it out. Thanks.
fender1165
A: 

For anyone interested, this was solved thanks to an extra set of eyes. On my tab bar, I'd declared the assigned nibs for every section, but missed a few class associations. That's what messed me up.

fender1165