How To Properly Add Child View Controller in iOS 8 With Swift

前端 未结 3 943
自闭症患者
自闭症患者 2020-12-09 13:43

I\'ve been going through the documentation and still seem to be on a sticking point.

I have a view controller object C_SelectPhoto. This has a container view. Insid

3条回答
  •  余生分开走
    2020-12-09 14:24

    If you want the red controller to be the child controller, delete the yellow one, and control-drag from the container to the red controller. There's no need to add it in code, or do any resizing. The red controller will be set to the same size as the container in the storyboard.

提交回复
热议问题