Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Miguel Martin
Miguel Martin
21,703 Points

iOS Table View

I am doing the blog reader app but i am with a problem.

I set everything right in the main storyboard, but with this iOS7 it seems it does not display it right on the screen. Can someone please help me fixing this problem?

https://dl.dropboxusercontent.com/u/52275067/screen.png

Thank you very much!

Scott Evans
Scott Evans
4,236 Points

Hi Miguel Martin.

Could you post a picture of your storyboard with the tableview selected so i can look at the placement?

Thanks

Miguel Martin
Miguel Martin
21,703 Points

Already solved by Stone Preston!! Thank you anyway Scott.

2 Answers

Stone Preston
Stone Preston
42,016 Points

thats because the status bar is now transparent in iOS7 and content no longer floats below it, it will move under it. you can add a table header to your tableView in your viewDidLoad method to move the tableVIew content down below the status bar:

-(void)viewDidLoad
{
self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 20)];
}
Scott Evans
Scott Evans
4,236 Points

Ah good, it seems to always escape me about the iOS 7 Transparency stuff..

Miguel Martin
Miguel Martin
21,703 Points

So many thanks Stone Preston !! Already tried and it works great !!