UIScrollview에서 왼쪽으로 스크롤하는 것을 어떻게 해제 할 수 있습니까? 이것은 사용자가 스크롤 할 수 있도록하기 위해서입니까?UIScrollView 가로 스크롤 - 왼쪽 스크롤 사용 안 함
감사
** * UPDATE * ****
이 내가 지금 가지고있는 것입니다.
scrollView.delaysContentTouches = NO;
scrollView.canCancelContentTouches = YES;
TouchesShouldBegin가 호출되고 있지만 touchesShouldCancelInContentView라고하지 않을 나는 이유를 파악하지 못할 : 나는 또한 다음과 같은 속성을 설정 한 다음 방법 제의 ViewController에서
@implementation TouchScrollView
- (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)view {
NSLog(@"touchesShouldBegin: I was touched!");
return YES;
}
- (BOOL)touchesShouldCancelInContentView:(UIView *)view {
NSLog(@"touchesShouldCancelInContentView: I was touched!");
return NO;
}
를있는 UIScrollView 서브 클래스 및 덮어 쓰기 한 !! !!
감사합니다.
이 추가? – prostock