在 iPad 中从基于 Window 的应用程序转换为基于视图的应用程序
我想知道我是否可以从基于窗口的应用程序转换为基于视图的应用程序...原因是因为我已经开发了我的应用程序的一部分,但遇到了一些方向问题,我被告知会出现这些问题只能通过使用基于视图的应用程序来解决。 我无法在网上找到任何与此相关的文档。
如果有人能在这方面帮助我,那就太好了...
I would like to know if it is possible for me to convert from a window based application to a view based appln... The reason is because I had already developed a part of my app but am getting some orientation issues which I was told would be solved only by using a view based application.
I was unable to find online any documentation regarding this..
It would be be great if anyone could help me out in this...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“基于窗口的应用程序”和“基于视图的应用程序”只是您可以用来启动项目的两个模板,任何您实际上可以用其中一个执行的操作都可以用另一个执行。
在我手头的 XCode 版本中,两者之间的唯一区别是“基于视图”为您提供了一个空的视图控制器,并将其连接起来以在应用程序启动时显示。
"Window based application" and "view based application" are just two of the templates you can use to start a project, anything you can actually do with one you can do with the other.
In the version of XCode I have handy here, the only difference between the two is that "view based" gives you an empty view controller and hooks it up to be displayed on app startup.
将视图控制器子类添加到您的项目中,然后创建一个实例并将其视图添加为 application:didFinishLaunchingWithOptions: 中 UIWindow 的子视图,您基本上已经完成了 - anomie
这是目前你能做的最好、最简单的事情
add a view controller subclass to your project, and then create an instance and add its view as the subview of your UIWindow in application:didFinishLaunchingWithOptions:, you've basically done it- anomie
it's the best and easiest thing you can do as of now