touchesBegin & touchesMove Xcode Obj C Question

前端 未结 1 1419
-上瘾入骨i
-上瘾入骨i 2021-01-07 07:25

So I have my app working good when you press and drag along. I also have UIButtons set to Touch Down in Interface Builder.

As well when you drag you need to drag fro

1条回答
  •  礼貌的吻别
    2021-01-07 07:46

    Tried something different. Using this worked much better:

    if(CGRectContainsPoint(myObject.frame, location) && lastButton != myObject) {
    

    Used it in touchesBegan & touchesMoved.

    0 讨论(0)
提交回复
热议问题