在 Objective-C 中添加一个视图控制器作为另一个视图控制器的子级
我需要知道如何在 Objective-C 中添加一个视图控制器作为另一个视图控制器的子级。 截至目前,我将视图控制器作为根视图控制器的模式呈现。但我现在想改变它。我有 2 个视图控制器,我将它们作为根视图控制器的模式呈现。但我怎样才能以不同的方式呈现它们呢?这种亲子观念如何运作?请给我一些参考。
I need to know how to add one view contoller as a child of another view controller in objective-c.
As of now I am presenting a view controller as a modal of the rootview controller. But I want to change it now. I have 2 view controllers which I am presenting as modals of root view controller. But how can I present them in a different way? How does this parent-children concept work? Please give me some references.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您应该阅读以下内容:
视图控制器编程指南< /a>
滥用UIViewControllers
我相信,在它们两者之间,您应该能够学习大部分(如果不是全部)有关 UIViewControllers 和视图层次结构的知识。
To start with you should read the following:
View Controller Programming Guide
Abusing UIViewControllers
I believe that between the two of them you should be able to learn most, if not all, of what you need to learn about UIViewControllers and view hierarchys.