• 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
Re: Index in only one section of UITableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Index in only one section of UITableView


  • Subject: Re: Index in only one section of UITableView
  • From: Sixten Otto <email@hidden>
  • Date: Wed, 30 Nov 2011 22:07:05 -0700

On Wed, Nov 30, 2011 at 7:59 PM, James West <email@hidden> wrote:
> Is it possible to override the default behavior of the UITableView index so it only shows over the right side of a subsection of a table - scrolling with it, etc?

Yeah, that really isn't how the index works at all (even leaving out
the part where the index points to sections, and not to individual
cells). You're gonna have to roll your own thing.

One thought that occurs to me, but probably isn't a terribly good
idea: make your index a subview of a custom section header (and make
sure that that header has clipsToBounds turned off). Then it'll scroll
with the table, and maybe(?) stay pinned in view when the table floats
the section header at the top. You can ask the table for its bounds,
and for the bounding rect of the section, in order to lay out that
custom index appropriately.

Sixten
_______________________________________________

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

References: 
 >Index in only one section of UITableView (From: James West <email@hidden>)

  • Prev by Date: Grabbing at 60hz
  • Next by Date: Re: Grabbing at 60hz
  • Previous by thread: Index in only one section of UITableView
  • Next by thread: Grabbing at 60hz
  • Index(es):
    • Date
    • Thread