Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fenrus110

macrumors regular
Original poster
Mar 24, 2008
142
0
I'm trying to drag around with my finger, a view that contains multiple subviews. Easiest way to show this is to grab the Touches sample, go to the function:
-(void) dispatchTouchEvent:(UIView *)theView toPosition:(CGPoint)position

and put in this line at the beginning or end,
Code:
self.center = position;

Now when you drag, you move the entire view. Except, it kind of looks like crap as it flickers like crazy. There is also a double image effect. As well, it's almost like the view "wraps around" as you get to the edges.

Is there a good way to accomplish this? Like a property I can set or a method I should call as I am dragging?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.