While creating a project, you should have selected the storyboard, so that you can add your IBOutlet
's directly in the story board.
The Below code gives you a idea of how to add IBOutlet
to the UILabel
class ViewController: UIViewController {
@IBOutlet var label : UILabel
}