Loading

Tuesday, June 15, 2010

Touch in Particular Area of Screen

-(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{

UITouch *touch = [[event allTouches] anyObject];
// get the touch location
CGPoint touchLocation = [touch locationInView:touch.view];
if(touchLocation.x>40 && touchLocation.x<263>68 && touchLocation.y<340 )
{
TRUE PART;
}
else
{
FALSE PART
}

No comments:

Post a Comment