Hey all. I am looking for an example of using a NSTimer that sends along
specific data to the selector method - because I haven't been able to find
any examples online.
What I have is a didSelectRowAtIndexPath method, and I want to start the
cell animation selection... and then using a timer animate the deselection.
I need to tell the selector method enough to be able to do it.

Here are my 2 methods:

- (void)onTimer {
   //? how to get enough data to be able to do something like this:
   [tableView deselectRowAtIndexPath:indexPath animated:YES];
}

 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(
NSIndexPath *)indexPath {

UITableViewCell *newCell = [tableView cellForRowAtIndexPath:indexPath];

UILabel *cellLabel = (UILabel *)[newCell.contentView viewWithTag:1];

[newCell setSelected:YES animated:YES];

        // What do I use for userInfo?

[NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(
onTimer) userInfo:nil repeats:NO];

//[tableView deselectRowAtIndexPath:indexPath animated:YES];

}

Any help is always appreciated,
Eric
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to