xcode storyboard Container View - How do I access the viewcontroller

前端 未结 5 1917
温柔的废话
温柔的废话 2020-12-23 13:02

I\'m trying to use storyboard and get things working properly. I\'ve added a a Container View to one of my existing views. When I try to add a reference to this in my view c

5条回答
  •  醉梦人生
    2020-12-23 13:15

    UIView* viewInsideOfContainer = installerView.subviews[0];
    

    Will give you the UIView inside of the UIViewController that your controller UIView references. You can cast the subview to any type that inherits from UIView.

提交回复
热议问题