用于iPhone OS的Window XIB和View XIB模板之间的区别在哪里?用户界面? [英] Where is the difference between an Window XIB and an View XIB template for iPhone OS > User Interfaces?

查看:100
本文介绍了用于iPhone OS的Window XIB和View XIB模板之间的区别在哪里?用户界面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像我理解的那样,如果我采用View XIB,我有一个内容视图,我可以在其中放置U​​I控件元素。

Like I understand it, if I would take the View XIB, I had an Content View where I can put UI control elements inside.

但是什么是窗口呢?这不是一回事吗?

But what's an Window then? Isn't that pretty much the same thing?

推荐答案

在iPhone上,每个应用程序通常都有一个窗口和多个视图。在您的情况下,您将在View XIB中设计您的UI,并在运行时将其添加到您的应用程序窗口中。您可以使用MainWindow XIB设置视图控制器,以根据需要在视图中交换视图。

On the iPhone each app typically has one window and multiple views. In your case you would design your UI in the View XIB and at runtime that would be added to your app's window. You can use the MainWindow XIB to setup a view controller to swap views in and out of your app as needed.

有关窗口和视图的详细信息,请参阅Windows和视图 iPhone应用程序编程指南

For more information about windows and views see the Windows and Views section of the iPhone Application Programming Guide

这篇关于用于iPhone OS的Window XIB和View XIB模板之间的区别在哪里?用户界面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆