1、新建UIView 2、拖一个GestureRocognizer 3、ctrl拖拽gesture的selector建立action 4、写事件 转载于:https://www.cnblogs.com/ybw123321/p/5219709.html