• 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: UITableView with only 1 row selectable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITableView with only 1 row selectable


  • Subject: Re: UITableView with only 1 row selectable
  • From: Roland King <email@hidden>
  • Date: Fri, 24 Dec 2010 18:01:17 +0800

Why not do it the other way around. Set allowsSelection to YES and then implement the delegate method tableView:willSelectRowAtIndexPath: to return nil for any row you do NOT want selected (see the documentation). That seems to be apple's designed way to do this.

On 24-Dec-2010, at 5:23 PM, Remco Poelstra wrote:

> Hi,
>
> I've an UITableView with allowsSelection=NO; I was wondering whether it's possible to do allow selection of a specific row. Is there some way I can detect a touch of a row and simulate a select in software?
> Thanks in advance.
>
> Regards,
>
> Remco Poelstra
>
> _______________________________________________
>
> 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

_______________________________________________

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

  • Follow-Ups:
    • Re: UITableView with only 1 row selectable
      • From: Ricky Sharp <email@hidden>
    • Re: UITableView with only 1 row selectable
      • From: Remco Poelstra <email@hidden>
References: 
 >UITableView with only 1 row selectable (From: Remco Poelstra <email@hidden>)

  • Prev by Date: UITableView with only 1 row selectable
  • Next by Date: Re: UITableView with only 1 row selectable
  • Previous by thread: UITableView with only 1 row selectable
  • Next by thread: Re: UITableView with only 1 row selectable
  • Index(es):
    • Date
    • Thread