Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to connect IBOutlets to Storyboards

I've recently started creating an iPhone interface for my iPad application using storyboards, I've changed the project to Universal instead of iPad and assigned the desired storyboard to its device in the project summary screen. But when I try to connect any element using control+drag to a piece of code such as:

@property (strong, nonatomic) IBOutlet UIImageView *logo;

It just can't link it. The object IS the same type as the code says, same as the View is the same class inheritance. The iPad storyboard is still working well and can be enhanced, it's still linked to the project. The new iPhone storyboard is completely useless, why is that?

like image 869
Lucas C. Feijo Avatar asked Dec 21 '22 15:12

Lucas C. Feijo


1 Answers

This happens when the view controller in the storyboard for the scene you are working on is not set to the correct class.

Here's roughly how it should look:

enter image description here

like image 156
Abizern Avatar answered Jan 05 '23 16:01

Abizern