Okay, I've found that the following code works in all orientations without any issues (In my case there are no overlapping views so this is appropriate for me): (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *t = touches anyObject; CGPoint point = t locationInView:self; for(CALayer *layer in self.layer. Sublayers) { CGPoint convertedPoint = self. Layer convertPoint:point toLayer:layer; if(layer containsPoint:convertedPointPoint) { NSLog(@"%@",layer.Name); } } } While this manual point conversion works correctly, the question still remains as to why the original method call did not.
Can anybody enlighten me? Adam.
Okay, I've found that the following code works in all orientations without any issues (In my case there are no overlapping views so this is appropriate for me): -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *t = touches anyObject; CGPoint point = t locationInView:self; for(CALayer *layer in self.layer. Sublayers) { CGPoint convertedPoint = self. Layer convertPoint:point toLayer:layer; if(layer containsPoint:convertedPointPoint) { NSLog(@"%@",layer.Name); } } } While this manual point conversion works correctly, the question still remains as to why the original method call did not.
Can anybody enlighten me? Adam.
After the rotation the hitTest method consistently returns null for the layer. I have noticed that when rotated 180 degrees, the returned layer is what was in that location before the rotation, i.e. Touching the top left layer gives the layer in the bottom right when rotated 180 degrees.
The coordinates of the hit test are printed as expected with (0,0) being in the top left. I redraw the layers with every rotation, but for some reason they seem to be mapped to being the "correct" way up, with the home button at the bottom. Am I missing a function call or something after handling the rotation?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.