my friend you can use this code for detect view that you touched this :
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch=[[event allTouches] anyObject];
if([touch view]== Box)
{
NSLog(@"2");
}
else
NSLog(@"1");
}