Quote:
Originally Posted by bachonk!
Used this code and it works great:
Code:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint touchPosition = [touch locationInView:self.view];
for(UIView *aView in [self.view subviews])
{
//CGPoint touchPosition = [touch locationInView:aView];
if (CGRectContainsPoint(aView.frame, touchPosition) == YES)
{
[aView removeFromSuperview];
}
}
}
thanks for the help above though
|
Hello,
Could you send the source code how you reacting CGRectContainsPoint(aView.frame,touchPosition) == YES) when i add this in my coding it shows CGRectContainsPoint does not have reference and symbols not found...
thanks in advance