MBH
MBH

Reputation: 16639

Connecting Storyboard and outlet doesnt work well in xcode 5.1, ios 7.1 sdk?

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.

enter image description here

Upvotes: 0

Views: 887

Answers (2)

Thanh-Nhon Nguyen
Thanh-Nhon Nguyen

Reputation: 3428

Make sure that your viewController in Storyboard is connected to your class.

Click on the yellow button: Click on the yellow button

Choose identity inspector tab and enter your class's name:

enter image description here

Upvotes: 4

GoodSp33d
GoodSp33d

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

Related Questions