i was wondering how to make a ViewController (or TTViewController) scrollable, eg for long pages?
My first try (make the frame bigger) doesnt work.
CGRect appFrame = [UIScreen mainScreen].applicationFrame;
CGRect frame = CGRectMake(0, 0, appFrame.size.width, appFrame.size.height + 200);
self.view = [[[UIView alloc] initWithFrame:frame] autorelease];
thanks
将视图作为子视图放在UIScrollView
并设置scrollview的contentSize以适合您的大页面。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.