I have a Navigation Controller in my main view. And I use the following code to add the navigation view when needed.
[self.view addSubview:navController.view];
However, the the navigation bar is not positioned correctly. I have posted a pic below. Anyone knows what is the potential problem?