-1

I am having the following problem while adding a subview to navigation controller. I even have tried to modify the Y location of frame before and after adding the subview but not effective.

Also tried to put a status bar on the child view but nothing is working.

20 pixels problem

Many Thanks.

Naveed Rafi
  • 2,503
  • 5
  • 32
  • 40

2 Answers2

0

You have a problem with a fullScreen IB checkbox or a fullscreen property set programmaticaly. Don't you call somewhere something like viewController.setStatusBarVisible = NO. Check it, I had the same problem.

EDIT : Does those questions / anwers help ?

iPhone - ModalViewController not raising to top of the screen

iPhone - displaying NavigationBar on a fullscreen modalView makes it go down with transparent space on top

Community
  • 1
  • 1
Oliver
  • 23,072
  • 33
  • 138
  • 230
0

Thank you very much everyone of you. I don't know what was the issue but instead of adding subview now I am using pushViewController and I am pushing the viewcontroller to the parent navigation controller. This solved the issue.

Thank you all of you once again.

Naveed Rafi
  • 2,503
  • 5
  • 32
  • 40