Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Michael Ruiz
3,065 PointsQuestions regarding object position issues in the Blog Reader and Ribbit app for iOS.
I have an issue that happened to me while creating the Blog Reader app which I never figured out how to fix and now occurring with the Ribbit app.
My issue is that when I run the Ribbit app, the navigation bar, in the login screen, is now covering the text fields, since the text fields of username and password were aligned towards the top of the view. When I go back into the storyboard to drag them down a bit so I can align the text fields under the navigation bar, it doesn't let me select it because when I try, it selects the navigation bar which sits on top of the text field. So here are my questions and hopefully someone can help me.
Is it something that I am doing or missing that caused this?
What are the options to fixing the issue?
For future reference. How could I move any object when it sits under another object that can't move, like the navigation bar, since clicking and dragging the object won't work because it will always select the top object?
Thank you.
2 Answers
Amit Bijlani
Treehouse Guest TeacherThis is not your fault. It's a result of the major UI changes in iOS7. You can read more about it: http://www.appcoda.com/customize-navigation-status-bar-ios-7/
For the Blog Reader app. Check out the solution I posted here
As for the navigation bar. In iOS 7 the navigation bar is supposed to be translucent so that it can show the content behind it. That's why it is covering your text fields which is of course not optimal experience. One way of preventing this behavior is to set that option to NO.
self.navigationController.navigationBar.translucent = NO;
You can add that code to the viewDidLoad method within your view controller.
Michael Ruiz
3,065 PointsThank you Amit.