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

Nir Ohayon
Nir Ohayon
2,399 Points

Table View Cell Alignment

Hi Guys,

I'm having some trouble with aligning the cell so the carrier bar won't Interfere...this is how it looks not, check out in the top left: http://d.pr/i/FbwX it's a (droplr link, just to see the screenshot)

Cheers,

1 Answer

Stone Preston
Stone Preston
42,016 Points

you can add a navigation bar, or a table header, or hide the carrier bar, how do you want it to look?

Nir Ohayon
Nir Ohayon
2,399 Points

either way its fine :) it's just driving me crazy that it looks like this. I tried the"simulated metrics" where you can change the top bar from inferred to add navigation bar, but after running the simulation i can't see the change..:/

Thanks,

Stone Preston
Stone Preston
42,016 Points

you will have to embed in a navigation controller in storyboard or add one programatically in your view controller. You can also try changing the frame of the table view using something like

self.tableview.frame = CGRect(0, height of carrier bar, 320, whatever the height of the remaining screen is)