2010-02-15 4 views
0

ViewController (또는 TTViewController)를 스크롤 할 수있게 만드는 방법을 궁금합니다. 긴 페이지는?ViewController를 스크롤 가능하게 만드시겠습니까?

내 첫 번째 시도 (프레임을 크게)가 작동하지 않습니다.

CGRect appFrame = [UIScreen mainScreen].applicationFrame; 
CGRect frame = CGRectMake(0, 0, appFrame.size.width, appFrame.size.height + 200); 
self.view = [[[UIView alloc] initWithFrame:frame] autorelease]; 

감사

답변

3

UIScrollView에 하위 뷰로보기를 넣어 설정있는 ScrollView의 contentSize는 대형 페이지에 맞게.

+0

감사합니다. 어떤 생각을 어떻게 3 20 구성 요소와 함께 할 수 있습니까? – fabian

+0

모든 three20 구성 요소는 UIView에서 상속되므로 UIScrollView에도이를 추가 할 수 있습니다. – Vladimir

관련 문제