¡@

Home 

2014/10/15 ¤U¤È 10:11:09

iphone Programming Glossary: locationinsuperview

UIImageView Gestures (Zoom, Rotate) Question

http://stackoverflow.com/questions/3448614/uiimageview-gestures-zoom-rotate-question

UIView piece gestureRecognizer.view CGPoint locationInView gestureRecognizer locationInView piece CGPoint locationInSuperview gestureRecognizer locationInView piece.superview piece.layer.anchorPoint CGPointMake locationInView.x piece.bounds.size.width..

Setting anchor point for UIView layer

http://stackoverflow.com/questions/4822457/setting-anchor-point-for-uiview-layer

anyObject CGPoint locationInView touch locationInView self New location is somewhere within the superview CGPoint locationInSuperview touch locationInView self.superview Set an anchorpoint that acts as starting point for the move Doesn't work self.layer.anchorPoint.. self.bounds.size.height Does work self.layer.anchorPoint CGPointMake 0.01 0.0181818 Move to new location self.center locationInSuperview iphone objective c uiview share improve this question As Kris Van Bael pointed out your going to need to do the anchor.. withEvent UIEvent event UITouch touch touches anyObject CGPoint locationInView touch locationInView self CGPoint locationInSuperview touch locationInView self.superview self.layer.anchorPoint CGPointMake locationInView.x self.frame.size.width locationInView.y..