[英]Make a ViewController scrollable?
我想知道如何使ViewController(或TTViewController)可滾動,例如用於長頁面?
我的第一次嘗試(使框架更大)不起作用。
CGRect appFrame = [UIScreen mainScreen].applicationFrame;
CGRect frame = CGRectMake(0, 0, appFrame.size.width, appFrame.size.height + 200);
self.view = [[[UIView alloc] initWithFrame:frame] autorelease];
謝謝
將視圖作為子視圖放在UIScrollView
並設置scrollview的contentSize以適合您的大頁面。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.