Reputation: 119
It will become clear as you read that I have very little experience programming please excuse me for an elementary question. I have on the storyboard the template for a tab based app. which has two view controllers both of which have a web view on them and both seem to be working fine. As I needed a third tab I dragged a view controller onto the storyboard and linked it to the tab bar controller, I also created a "thirdViewContoller.swift" file which was copied from one of the other two which was in the template. Ran the app and everything works fine. I now drag a UiWebView onto the third view controller and unlike the other two when I try to control drag the webView to the code it will not link up. What am I missing. Many thanks for any help.
Upvotes: 0
Views: 698
Reputation: 2368
Did you check that your thirdViewController
class is set in the storyboard
? Click the yellow circle on your third view controller that you added in the storyboard
. Go to the Identity inspector tab. Make sure the "Custom class:" field is set to thirdViewController
. Now you should be able to make an IBOutlet
for your web view by control dragging.
Upvotes: 3