ios - Is it possible to pin a UIView's top to the bottom of the navigation bar? -
i'm trying position uiview 20pt under navigation bar, when set relative view on view controller it's still under navigation bar @ 20pt, , don't want hardcode it.
is possible position away navigation bar?
try adding contraint toplayoutguide,
the main difference between toplayoutguide , self.view is, top layout guide starts bottom of status bar + bottom of navigation bar(if exist)
, self.view start (0,0) coordinate in ios 7 translucent navigation bar.
so in case should seek pinning top layout guide.
ios cocoa-touch uiview autolayout nslayoutconstraint
No comments:
Post a Comment