2012年11月1日 星期四

[iOS] Windows and Views


  • Windows
    • 本身沒有任何內容 (content),他提供的是一個 app的 container,來存 views。
    • 通常只有一個 window,除非有其他的螢幕畫面。
    • 一個 app至少一個 window、一個 view
    • instance of UIWindow
  • Views
    • 放置真實內容,例如 images, text, shapes, and so on。
    • 其為 windows的一部分。
    • instance of UIView
    • manages a rectangular area in your application window
    • responsible for drawing content, handling multi-touch events(by gesture recognizer or handing touch events directly), managing layout of subviews

沒有留言:

張貼留言