Re: UITableView with only 1 row selectable
Re: UITableView with only 1 row selectable
- Subject: Re: UITableView with only 1 row selectable
- From: Remco Poelstra <email@hidden>
- Date: Fri, 24 Dec 2010 11:31:00 +0100
Yes, stupid me.
I did search the documentation for a related problem: How can I detect whether the will and didAppear methods are called moving upwards or downwards through the viewControllers array of a navigationController? I mean I want to detect whether a TableViewController is shown because it's pushed on the stack or because a higher level TableView is just popped.
Do I need custom logic to track that?
Regards,
Remco
Op 24 dec 2010, om 11:11 heeft Roland King het volgende geschreven:
> again read the documentation - it's all there .. quoting from it .. apple deals with that exact case
>
> This method is not called until users touch a row and then lift their finger; the row isn't selected until then, although it is highlighted on touch-down. You can use UITableViewCellSelectionStyleNone to disable the appearance of the cell highlight on touch-down. This method isn’t called when theediting property of the table is set to YES (that is, the table view is in editing mode).
>
> On 24-Dec-2010, at 6:03 PM, Remco Poelstra wrote:
>
>> Hi,
>>
>> Thanks for your e-mail.
>> I've considered this, but I think it's ugly that the rows flash blue momentarily. Is there a way to avoid that?
>>
>> Regards,
>>
>> Remco
>>
>> Op 24 dec 2010, om 11:01 heeft Roland King het volgende geschreven:
>>
>>> 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