Hello,
I am just starting to learn Swift and XCode, and I had a quick question.
I'm just learning about linking items in the Interface Builder (From a storyboard or XIB) to code by Ctrl+Click & dragging from the item in IB into the code, where XCode then places some code beginning with something like: @IBOiutlet, @IBAction.
My question is this, Is the Click+Drag business necessary? Could I have just typed in those lines of code and had them be connected? Or is Xcode also doing other things in the background that I cannot see to facilitate those connections?
Thanks!
I am just starting to learn Swift and XCode, and I had a quick question.
I'm just learning about linking items in the Interface Builder (From a storyboard or XIB) to code by Ctrl+Click & dragging from the item in IB into the code, where XCode then places some code beginning with something like: @IBOiutlet, @IBAction.
My question is this, Is the Click+Drag business necessary? Could I have just typed in those lines of code and had them be connected? Or is Xcode also doing other things in the background that I cannot see to facilitate those connections?
Thanks!