Tôi đang sử dụng mã dưới đâyLàm thế nào để vượt qua lập luận để hành động trong UIGestureRecognizer initWithTarget hành động
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(processTap)];
- (void) processTap
{
//do something
}
Nhưng tôi cần phải gửi một dữ liệu với chức năng processTap. Có anyway để làm điều này?
Tôi nghĩ điều này sẽ giúp bạn hiểu: http: //stackoverflow.com/a/5035335/177136 – Ger