View Programming Guide for iOS——官方文檔翻譯(2)View and Window Architecture

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)正常。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容