objective c - iOS hidesBarsOnSwipe status bar background color -
when swipe , hide navigation bar hidesbarsonswipe
property status bar has clear background. how can set background of status bar same color navigation bar? here few pictures showing problem, contained in uitableviewcontroller
.
separate
separate picture, looks 1 big one.
i've come across same issue, , able solve it. i'm new ios dev, , don't imagine solution foolproof. couldn't find answers elsewhere, here's how overcame it:
- i converted uitableviewcontroller on uiviewcontroller nested uitableview. note, double check delegate child tableview set uiviewcontroller.
i added view height of 20px , background colour want set "background" status bar. set constraints on view follows:
on table view, set constrains full screen. 1 important note here, top constraint "top layout guide.top" , not "top layout guide.bottom". default believe constraint ties bottom. double clicking on constraint allows adjust top. without this, table header cells weren't positioned me
hope helps.
Comments
Post a Comment