0

I used a typical UITableViewController subclass to set up my page. The grouped UITableViews have different margins on iPad and iPhone. This causes my tableHeaderView to be maligned on at least one of the devices. How do I programmatically get the margin width so I can perfectly align the header to the left of the table? I know that I can measure with Photoshop and hardcode numbers in an if/else, but I'd like a more robust solution.

iPhone

enter image description here

iPad

enter image description here

Community
  • 1
  • 1
Pwner
  • 3,714
  • 6
  • 41
  • 67
  • Here's at least one idea: http://stackoverflow.com/questions/4708085/how-to-determine-margin-of-a-grouped-uitableview-or-better-how-to-set-it – danh Aug 13 '13 at 23:18
  • I predict in the future table sections go all the way to the edge. – timquinn Aug 14 '13 at 08:23
  • @timquinn I predict Apple will converge to Google's design within 2 years because Tim Cook has been publicly reprimanded for being lame :p – Pwner Aug 14 '13 at 18:23

0 Answers0