• 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
UITableViewHeaderFooter frames?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UITableViewHeaderFooter frames?


  • Subject: UITableViewHeaderFooter frames?
  • From: Steve Mykytyn via Cocoa-dev <email@hidden>
  • Date: Tue, 11 Aug 2020 12:02:45 -0700

I would like to get the frame of displayed UITableViewHeaderFooter views,
but unfortunately

[self.tableView.delegate tableView:self.tableView viewForHeaderInSection:i]

returns the correct UITableViewHeaderFooter based on its textLabel, but the
frame is all zeroes:

Printing description of header: <LUXViewTableSectionHeader: 0x7fc03de477f0;
baseClass = UITableViewHeaderFooterView; frame = (0 0; 0 0); text = ' ▽
Permissions'; tintColor = <UIDynamicProviderColor: 0x60000042dde0; provider
= <*NSMallocBlock*: 0x600000af3d20>>; gestureRecognizers = <NSArray:
0x600000a45ce0>; layer = <CALayer: 0x60000043c0e0>>

I can get valid frames for UITableViewCells, but not the section headers.

Any suggestions?
_______________________________________________

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: Funny issue: one line in GUI is grey-ish
  • Next by Date: AddInstanceForFactory: No factory registered for id
  • Previous by thread: Re: Funny issue: one line in GUI is grey-ish
  • Next by thread: AddInstanceForFactory: No factory registered for id
  • Index(es):
    • Date
    • Thread