(If there is any content on your old navigation bar, you can first drag it down, embed the view controller in navigation controller and then move the bar buttons on the new navigation bar and then delete the old navigation bar) You can do it by just selecting the view controller and going to Editor > Embed In > Navigation Controller. The best and the most easiest way to solve this issue is to just embed your view controller inside a navigation controller and thats it. SOLUTION to First Problem: You can either use UIBarPositionTopAttached or you can use view bounds and frames, i can also suggest and link you to Apple's documentation and bla bla bla but that would take some time for you to solve the issue. PROBLEM: Well the problem is that your have earlier dragged a navigation bar in your view controller which was working in iOS 6 correctly but with the arrival of iOS 7 SDK, this approach is resulting in status bar and navigation bar overlapping with each other. One is that your status bar and navigation bar are both kind of colliding with each other as shown by you in the question with an image. First of all i can see two different problems. Now coming to the answer of your question. It has all the information related to navigation and status bar in iOS 7. The navigation bar image can even be extended behind the status bar.įirst of all, if you are a beginner and have just started iOS development and are confused the way status bar and navigation bar is working, you can simply go through a blog post HERE that i found very useful. The status bar is now transparent and navigation bar behind it shows through. The latest version of the iOS has brought many visual changes and from a developer's point of view, the navigation and status bar are two noticeable changes. Can anyone point out what i am doing wrong?
It is showing text from another view controller that is currently behind it that is its parent view controller. Now it looks ok in the storyboard but when i run it, it shows the following: Removed the navigation bar that was earlier manually added in it. UPDATE: I have embedded the view controller inside a uinavigation controller. What is the one thing that can help me resolve this issue. Some solutions suggests to use the view bounds and all but it didn't work for me as well. Some say i should remove the navigation bar and embed it inside the navigation controller that i cannot do due to the way my program is implemented. Some questions say that i should use this "self.edgesForExtendedLayout = UIRectEdgeNone " but it didn't work. I have seen a lot of such questions on the stack overflow but they didn't of much help to me.
The status bar and the navigation bar should no collide with each other. It was working fine in the iOS 6 but in iOS 7 it look like this: I have a view controller in my app that has a navigation bar dragged on it in the storyboard.