Hello do i need two webview for my app i have one web view link to my forum but i have another link for my chat room when i try a IBOutlet i get a arror then i try a IBAction still get the same arror i want to use a button to link to the chat room http://www.optionstalk.net/cometchat/modules/chatrooms/index.php?id=17 here's a screenshot [IMG]http://i844.photobucket.com/albums/ab7/swatstj/Screen%20Shot%202016-05-28%20at%204.23.48%20PM_zpsexir6grg.png[/IMG]
two web view or IBOutlet,IBAction
i was thinking would i need 2 view controller for this one link to the forum and the other to the chat ? any ideas will help a lot thank you
You have code like this:
- (void)viewDidLoad {
…
- (IBAction)HomeChat {
…
}
- (IBAction)home {
…
}
[super viewDidLoad];
}That won’t work. Objective-C does not let you nest methods within other methods. You’ll need to pull the
-HomeChat and
-home methods out to the top level, like this:
- (void)viewDidLoad {
…
[super viewDidLoad];
}
- (IBAction)HomeChat {
…
}
- (IBAction)home {
…
}Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"WWDC runs Mon, 13 Jun through to Fri, 17 Jun. During that time all of DTS will be at the conference, helping folks out face-to-face. http://developer.apple.com/wwdc/