• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UITableView section 20 px difference between text and view versions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UITableView section 20 px difference between text and view versions


  • Subject: UITableView section 20 px difference between text and view versions
  • From: Rick Mann <email@hidden>
  • Date: Thu, 11 Jul 2013 15:01:22 -0700

If I implement -tableView:titleForHeaderInSection:, the resulting header has additional margin (20 px) above the views created for the header by iOS.

If I instead implement -tableView:viewForHeaderInSection: and -tableView:heightForHeaderInSection:, I don't get that extra 20 px of padding above my view.

Where does that padding come from, and can I get it added to my header view, or do I have to bake it into my view?

Thanks,

--
Rick




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Using autolayout in a UI table view section header view
  • Next by Date: iOS reachability
  • Previous by thread: Re: Using autolayout in a UI table view section header view
  • Next by thread: iOS reachability
  • Index(es):
    • Date
    • Thread