는 내가 계세요하지만 드래그 할 때 나는 UIView
와 교체 크기 320x412의 UIScrollView
과 내부 크기의 UIView
이 a TextView
작동 중입니다 ... UIScrollView 내에서 TextView를 위아래로 드래그 할 수 있지만보기에서는 작동하지 않습니다.보기
이것은 내 xib 파일이 어떻게 생겼는지 보여줍니다. 검은 색은보기입니다. UIScrolView.ANy 아이디어로 이동하려는보기 왜 이것이 작동하지 않습니까?
http://i53.tinypic.com/jubub6.png
편집 :이 작동하지 여전히
scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
scrollView.contentSize = CGSizeMake(320,480);
scrollView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
scrollView.bounces = YES;
scrollView.bouncesZoom = YES;
scrollView.scrollEnabled = YES;
scrollView.minimumZoomScale = 0.5;
scrollView.maximumZoomScale = 5.0;
scrollView.delegate = self;
//myView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
[scrollView addSubview:myView];
[myView release];
그리고했다!
제 편집을보세요! – adrian