iPhone: detect two finger touch

后端 未结 3 1489
独厮守ぢ
独厮守ぢ 2021-02-15 14:28

I need to detect two finger touch event. If i touch the screen with two fingers on same time, so everthing is ok. Just using such code:

- (void)touchesBegan:(NSS         


        
3条回答
  •  时光取名叫无心
    2021-02-15 15:25

    What is the real object that is receiving the event? That object may get your touch event and not the base UIResponder.

    For example if you are inside a UIScroolView then you can get the sec touch in:
    - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView;

提交回复
热议问题