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

iOS

Displaying TableView under status bar?

Hi, I'm working on the blog reader app and all code works fine. However, my tableview controller displays over the status bar at the top of the screen - i.e. they overlap.

Does anyone know how to get the view to display underneath the status bar at the top of the screen?

Thanks in advance! I've searched forums all over the web and can't find a solution that works for me. I'm using xCode 5 and simulating my app on iOS 7.

1 Answer

I haven't done that project yet, so I can't say firsthand (and don't know the specifics of the project), but did you put the tableview controller inside of a UINavigationController? That should put a toolbar up top and take care of the status bar overlap. If you don't want a toolbar, you can put a "dummy" cell that's the size of the status bar at the top of your UITableView to avoid overlaps with your data.