15
Как добавить сенсорное событие в UIView?
Как добавить сенсорное событие в UIView? Я пытаюсь: UIView *headerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, nextY)] autorelease]; [headerView addTarget:self action:@selector(myEvent:) forControlEvents:UIControlEventTouchDown]; // ERROR MESSAGE: UIView may not respond to '-addTarget:action:forControlEvents:' Я не хочу создавать подкласс и перезаписать - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
280
ios
objective-c
events
uiview
touch