Kru*_*ala 1 objective-c ios uitapgesturerecognizer
为 UITapGesture 设置委托发出警告
这是我的代码:
UITapGestureRecognizer *tapOtherPlayers = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapcollectionViewOtherPlayers:)];
tapOtherPlayers.delegate = self;
[tapOtherPlayers setNumberOfTapsRequired:1];
[collectionViewOtherPlayers addGestureRecognizer:tapOtherPlayers];
Run Code Online (Sandbox Code Playgroud)