Quote:
|
I thought about determining if the touches were in the frame but it seemed like a lot of effort.
|
Its actually pretty straightforward.
Code:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch;
touch=[touches anyObject];
CGPoint point=[touch locationInView:self];
if (CGRectContainsPoint([myTextBox frame],point))
{
//press was on me!
[self doSomething];
}
}