View and Window Architecture
視圖和窗口架構(gòu)
Viewsand windows present your application’s user interface and handle theinteractions with that interface. UIKit and other system frameworks provide anumber of views that you can use as-is with little or no modification.You can also define custom views for places where you need to present contentdifferently than the standard views allow.
視圖和窗口顯示了你應(yīng)用的用戶界面蛮粮,并處理同那個界面的交互庄岖。UIKit和其他系統(tǒng)框架提供了許多視圖,你照原樣(as-is)少許或不修改就能使用。你也能夠為你需要呈現(xiàn)的,不同于標(biāo)準(zhǔn)試圖給予的內(nèi)容的地方,使用自定義視圖。
Whether you usethe system views or create your own custom views, you need to understand theinfrastructure provided by the?UIView?and?UIWindow?classes. These classes provide sophisticated facilities for managing the layoutand presentation of views. Understanding how those facilities work is importantfor making sure your views behave appropriately when changes occur in yourapplication.
無論你是使用系統(tǒng)視圖還是創(chuàng)建自己的自定義視圖,你都需要理解由UIView類和UIWindow類提供的基礎(chǔ)結(jié)構(gòu)狠半。這些類提供了復(fù)雜的工具,用于管理視圖的布局和顯示颤难。了解這些工具怎樣工作是重要的神年,以確保當(dāng)你的應(yīng)用發(fā)生改變時,您的視圖能夠表現(xiàn)正常行嗤。