iOS insert View between Navigation Bar and View underneath it -


i want insert uiview between navigation bar , uiview (underneath navigationbar) show network connectivity status. view underneath nav bar should go downward make space indicatorview.

my code:

indicatorview = [[uiview alloc] initwithframe:cgrectmake(0, 0, view_width, 35)]; [self.view addsubview:indicatorview]; self.view.frame = cgrectmake(0, 35, view_width, view_height - 35); 

this inserts view whole window shift upwards , create space @ bottom of view. what's wrong?


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -