UIView drag (image and text)

前端 未结 6 1899
悲&欢浪女
悲&欢浪女 2020-11-27 13:59

Is it possible to drag UIView around the iOS screen while it has both image and text? e.g. small cards. Could you point me to the similar (solved) topic? I haven\'t found an

6条回答
  •  时光取名叫无心
    2020-11-27 14:29

    Even though rokjarc solution works, using

    CGPoint previousLocation = [aTouch previousLocationInView:self.superview];
    

    avoids the CGPoint offset creation and the call to touchesBegan:withEvent:

提交回复
热议问题