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

For the Blog Reader App, I am using iOS 7 and the example is using iOS 6. The formatting is off, please help!

Here is a screenshot of what my app looks like in the test environment. Any idea why?

http://i.imgur.com/69i0jVA.png

2 Answers

Later on in the project you will add a navigation controller which will sort that out.

You can easily fix this by implementing one of tableView's many delegates :)

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    NSInteger cellCount = [self tableView:tableView numberOfRowsInSection:indexPath.section];
    return self.view.frame.size.height / (CGFloat)cellCount;
}