Я пытаюсь добавить только распознавание левого указателя в заголовки таблиц. Кажется не работает - все, что можно найти в stackoverflow и web. Прекрасно работает в реальных ячейках таблицы, но при добавлении его в заголовки таблицы ничего.UISwipeGestureRecognizer in viewForHeaderInSection
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{ SnapSong * песня = ноль;
NSString * text = song.title; NSString * detailText = song.albumName;
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 80)];
view.backgroundColor = [[Globals sharedInstance] gCellBgColor];
view.tag = section;
UISwipeGestureRecognizer *recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self
action:@selector(handleSwipeLeft:)];
[recognizer setDirection:(UISwipeGestureRecognizerDirectionLeft)];
[view addGestureRecognizer:recognizer];
return view;
}
Это просто не красть, я пытался добавить жест к столу и т.д. ...
Спасибо за помощь
Пытаться установить view.userInteractionEnabled = YES –
пытался, не получилось. По какой-то причине я могу прокручивать, как только каждый Х пытается, случайно. –
Возможно, это поможет: http://stackoverflow.com/questions/15890305/uitableview-swipe-gesture-requires-near-perfect-accuracy –