url link in tabview
hello all,
I can't understand this for the life of me, but I have a tab bar application, and in it I have included several buttons that link to websites.
I started by declaring in the appdelegate.h:
@class URLViewController;
then in the first view controller .h - i have added:
-(IBAction)link;
and in firstviewcontroller.m - i have added:
-(IBAction) link {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com"]];
I also linked the outlet "link" to all the buttons.
I carried this out in all three tabs - so they look identical in first view, second view and the extra third view i added.
Works fine in first two, but not in third.
It loads in the simulator fine, but when i click the button - no action.
Very grateful for any support anybody can lend me on this one
thanks
|