简体   繁体   English

如何使用手指触摸在视图之间切换?

[英]How to switch between views using the finger touch?

I made an application to navigate between views. 我做了一个应用程序来在视图之间导航。 Each view contains Different text. 每个视图包含不同的文本。 The navigation is done by button. 导航按钮完成。 But I want to replace that by the finger touch (slide right or left). 但我想通过手指触摸(向右或向左滑动)来替换它。 I mean, becomes a movement between the views using touch by finger 我的意思是,使用手指触摸成为视图之间的移动

You can add swip gesture on the view or you can also implement touch delegates like 您可以在视图上添加swip手势,也可以实现触摸代理

 – touchesMoved:withEvent:
    – touchesEnded:withEvent:
    – touchesCancelled:withEvent:

to implement your requirement 实现您的要求

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM