I use [aSubview touchesBegan]to move the position aSubviewon the screen in relation to my supervisor. His supervisor is not much bigger than subview itself. This is pretty easy to do, as the following snippet shows:
UITouch* touch = [touches anyObject];
CGPoint touchPoint = [touch locationInView:[self superview]];
self.center = touchPoint;
However, as soon as a aSubviewmoves, as soon as any part of it goes beyond its supervisor, touches in this section are no longer recorded. In other words, it touchesBeganno longer works. I want touches to aSubviewbe recorded no matter where he moved relative to his observation.
Any thoughts?
Howard
hkatz source
share