我想将 aNSArray
作为参数传递给UITapGestureRecognizer
并在 downloadOptionPressed 方法中访问它。我怎样才能做到这一点 ?
这NSArray
NSArray *parameters = [NSArray arrayWithObjects:currentTrack, nil];
创建UITapGestureRecognizer
UITapGestureRecognizer *downloadOptionPressed = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(timeFrameLabelTapped:)];
[downloadOption addGestureRecognizer:downloadOptionPressed];
downloadOptionPressed
方法_
-(void)downloadOptionPressed:(UIGestureRecognizer*)recognizer{
}