Nicholas Muir
Nicholas Muir

Reputation: 3104

Create a reference (IBOutlet) from containerview to view controller

I have a view controller, which contains a containerview. I want to put a reference (IBOutlet) to the containerview in the view controller but when I click and drag I get the blue line but it doesn't allow me to place the reference.

Is there something special to do or am I missing something in my understanding?

Thanks

Upvotes: 0

Views: 211

Answers (1)

Harsh
Harsh

Reputation: 2908

This is not possible, you can only drag properties to the class which it belongs to.

So you can only drag properties to your containerViews controller and not the parent

Use property parentViewController as self.parentViewController and access all the properties you want.

Upvotes: 1

Related Questions