Upgrade to Pro — share decks privately, control downloads, hide ads and more …

【iOS】View Hierarchy

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

【iOS】View Hierarchy

Show what is the meaning "View Hierarchy"? And how it works.

說明 View Hierarchy 的意義,還有是怎麼運作的
#實習 #公司分享會 #iOS

Avatar for Richard Kao

Richard Kao

August 30, 2016
Tweet

More Decks by Richard Kao

Other Decks in Technology

Transcript

  1. w t a h is it? A view instance can

    act as a container, enclosing other view instances. Those views are linked together creating a View Hierarchy. 疥 View Hierarchy ፡౮奾䯤䰽 Window
  2. ݱ㮆 View ԏ樌ጱ橕肥 o L c& ation R elation •

    window: root of the view • superview: view ጱᆿ憙瑽 • subviews: view ጱৼ憙瑽褸ݳ
  3. o L c& ation R elation (stor yb oar d

    ( • View ጱ硎硯֖ᗝ究ਧԧ drawing ጱ殼ଧ - ℂ Outline ኧӥஃӤ፡牧ฎ View ࣁ向ᶎ氥纈ጱӤکӥҁ獮ک盅҂ - ض媑蕣 superview牧ٚ媑蕣 subview • Editor -> Arrange -> Send to Front / to Back / Forward / Backward
  4. & Ҭ w u pe r ve i su b

    (storyb oar d ( w ve i Superview 虋牧Subview 蚤茐虋牦 • ֖ᗝ • य़ੜ • 蝚กଶ • 㳫ᴻ