ios - Why do I have to set trailing space to -16 in Interface Builder to get full screen width? -


i'm building ios application , have menu appears bottom , can opened upwards swipe. doing programmatically works easily.

since learn how in interface builder gave try , interface builder driving me crazy.

what did:

  • create new view controller in story boards. add arrow controller shown first.
  • add view bottom of view controller's view. let's call view menu.

  • set constraints menu: leading space, trailing space , bottom space superview 0 , height 100.

seems should fine. when run application, happens:

enter image description here

yellow background colour of main view , red background colour of menu.

only way make menu full width if set leading , trailing space -16. not make sense me!

am doing wrong? don't think should complicated.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -