Reputation: 16639
I try sometimes to connect label or button to its outlet in the class, but xcode doesnt accept the connection.
As in this picture, i cannot connect the label in the sotryboard to the outlet label resultLabel.
Upvotes: 0
Views: 887
Reputation: 3428
Make sure that your viewController in Storyboard is connected to your class.
Click on the yellow button:
Choose identity inspector tab and enter your class's name:
Upvotes: 4
Reputation: 6282
To create IBOutlets and IBActions to ViewControllers you must first set the File Owner to that ViewController in StoryBoard or Nib.
I have encountered this bug in Xcode 6. If it happens just clear file owner clean project and set File owner again to the same view controller.
Upvotes: 1