Search code examples
iphoneuinavigationcontrolleraddsubview

adding subview problem


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.


Solution

  • 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.