Может ли UIButton реагировать на событие касания, если его позиция находится вне его суперпредставления, но видна ли она?
UIView *view01 = [[UIView alloc] initWithFrame:CGRectMake(0,0,200,200)];
UIButton *button01 = [UIButton buttonWithStyle:UIButtonType:UIButtonTypeRoundedRect];
[button01 addTarget:self action:@selector(testTouch:) forControlEvents:UIControlEventTouchUpInside];
button01.frame = CGRectMake(0, 200, 60, 40);
[view01 addSubview:button01];
- (void)testTouch:(id)sender{
NSLog(@"Touched.....");
}
.........