Reputation: 3104
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
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