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.

enter image description here

separate

enter image description here

separate picture, looks 1 big one. enter image description here

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:

  1. i converted uitableviewcontroller on uiviewcontroller nested uitableview. note, double check delegate child tableview set uiviewcontroller.
  2. i added view height of 20px , background colour want set "background" status bar. set constraints on view follows: bar background constraints

  3. 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 enter image description here

hope helps.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -