Is it wise to “nest” UIViewControllers inside other UIViewControllers like you would UIViews?

后端 未结 3 1640
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 00:31

I\'ve got a fairly complex view, for me anyway, that has a few \"trays\" with custom interface items on them. They slide in and out of my root view. I\'d like to nest (addSu

3条回答
  •  [愿得一人]
    2020-12-05 01:02

    I'm trying to do the same thing, but was dissuaded from your approach by Apple's documentation, which states that "You should not use view controllers to manage views that fill only a part of their window—that is, only part of the area defined by the application content rectangle. If you want to have an interface composed of several smaller views, embed them all in a single root view and manage that view with your view controller."

提交回复
热议问题