美文网首页
IOS UIButton长按事件

IOS UIButton长按事件

作者: Fat_Blog | 来源:发表于2020-07-28 11:12 被阅读0次
    //按钮长按
            UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)];
           //长按时间
            longPress.minimumPressDuration = 0.8;
            [titleButton addGestureRecognizer:longPress];
    

    相关文章

      网友评论

          本文标题:IOS UIButton长按事件

          本文链接:https://www.haomeiwen.com/subject/mzffrktx.html