当我使用此方法(void)longpressed:(UILongPressGestureRecognizer*)时,长按手势对我不起作用。当我长按标签时不会调用手势。-(void)viewDidLoad{[superviewDidLoad];array=[NSMutableArrayarrayWithObjects:@"hello",@"we",@"Are",@"Swift",nil];intypoint=60;for(inti=0;i 最佳答案 将userInteractionEnabled=true属性设置为您的标签。