Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback
Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback
- Subject: Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback
- From: Carl Hoefs <email@hidden>
- Date: Sat, 27 Feb 2016 12:17:57 -0700
On Feb 27, 2016, at 12:10 PM, Ben Kennedy <email@hidden> wrote:
>
>> On Feb 27, 2016, at 11:01 AM, Carl Hoefs <email@hidden> wrote:
>>
>> The problem is that the delegate callback associated with selecting that row doesn't occur. And indeed, I have since found that the documentation for this method says:
>>
>> "Calling this method does not cause the delegate to receive a tableView:didSelectRowAtIndexPath: message."
>>
>> Is there a method to call (or some other way) that will do this?
>
> Why not just call that method yourself?
Yes, that works, thanks! I just thought there might be a "preferred" way to do it. I guess I was hoping for something like:
[myTableView selectRowAtIndexPath:indexPath
animated:YES
scrollPosition:UITableViewScrollPositionMiddle
triggersDelegateCallback:YES];
-Carl
_______________________________________________
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