【发布时间】:2011-09-08 06:00:08
【问题描述】:
我有 2 个完全依赖 AppDelegate 文件的 UIView。
First UIView 是我在启动应用程序时必须启动的广告页面。但是我已经用另一个依赖于 AppDelegate 的 HomeView 制作了该应用程序。
我在 applicationDidFinishLaunching 中添加 AdView 如下:
[self.view addSubView:AdView.view];
但现在我希望当我点击 AdView 页面中的 DONE 按钮时,我应该导航到 HomeView。但是homeView应该是appDelegate的子视图
我如何在 Done 按钮上编写代码来完全删除 AdView 并将 Home View 作为 appDelegate 的子视图? 提前谢谢
【问题讨论】:
标签: iphone objective-c uiview uiapplicationdelegate addsubview