Add UI view to storyboard

Noob XCode / Swift question here. I'm trying to add Facebook to my demo app and I'm stuck at step 11 : "Add a UIView to your storyboard and connect the output of the fbLoginView."

I control + drag and drop a link to a view controller, but that doesn't create a link. I did this drag and drop to connect earlier, but with the Object Library items, I added myself to the storyboard. I'm not sure how to do this if the code, i.e. @IBOutlet var fbLoginView : FBLoginView!

is already in my view controller.

+3


source to share


2 answers


I tried this tutorial and found a solution for you to everything you need to do. Click on UIView and set the class name to FBLoginView . Like this way:

enter image description here

After that, you can plug in your outlet as follows:

First click on UIView in your storyBoard then connect to Outlet



enter image description here

and you will find fbLoginView

.

Maybe this will help you.

+5


source


Then try clicking View Controller on the left and see if the socket is available to the right of the Connection inspector. If it's simple, just drag it right into the view to bind it, otherwise it has to be added to the code, but it seems like you've already said that you did it seems a little too pedantic to even mention.



0


source







All Articles