Skip to main content

All Questions

0 votes
0 answers
46 views

Pass a message to parent inside UIGestureRecognizer handler?

Forgive me if this has been asked elsewhere; I searched thoroughly and couldn't find anything. I am (brand) new to iOS development, and I'm learning things the Objective-C way. I've run across an ...
logan_____'s user avatar
0 votes
3 answers
97 views

In iOS7, cannot drag ImageView out of the constraints of parent view to main body?

In iOS, when dragging an UIImageView (red square) using UIPanGestureRecognizer in a scrollview (bar at bottom within another UIImageView), I cannot drag out of the constraints of the bar into the main ...
0--'s user avatar
  • 221
2 votes
1 answer
2k views

(iOS) Drag and drop, Snap to grid, Check proper area

I've read all the stuff about drag'n'drop and gestureRecognizer but haven't found the solution. I got "gamefield" 10x10 and I want to implement drag'n'drop with snap to grid and check if element ...
Palindrome's user avatar
0 votes
1 answer
278 views

How to Drag/Drop objects inside a UIScrollView using a UIPanGestureRecognizer?

I've seen similar questions here, but I haven't seen a solid answer to my question directly. I have a UIScrollView that contains a UIImageView object. That view can be zoomed in to view more details ...
thephatp's user avatar
  • 1,489
2 votes
0 answers
247 views

How to drag and drop an item on top another

I am trying to create a little game, and have a problem with the dragging and dropping of objects : I am using UIPanGestureRecognizer on two buttons. What I want is for button 2 to be highlighted when ...
Glyphs's user avatar
  • 97
6 votes
2 answers
6k views

Drag + Rotation using UIPanGestureRecognizer touch getting off track

I am doing some drag and rotation calculations using UIPanGestureRecognizer. The rotation angle is correct, and the drag location is almost correct. The problem is that as you go around the center of ...
Ryan Poolos's user avatar
  • 18.5k
1 vote
1 answer
1k views

iPhone4 iOS5 Advanced ScrollView techniques: drag and drop a button with longpress

I remember that one of the WWDC 2011 videos that dealt with scrollview had a demo, where the presenter (Eliza) demonstrated how to infinitely scroll along a scrollview. The demo used a bunch of pre-...
Alex Stone's user avatar
  • 47.1k