-
Notifications
You must be signed in to change notification settings - Fork 116
Description
新闻列表页项目点击事件如下:
(void)contentView:(XHContentView *)contentView didSelectRowAtIndexPath:(XHPageIndexPath *)indexPath {
GTNewsViewController *newsViewController = [[GTNewsViewController alloc] init];
newsViewController.news = [channelManager channelNews:indexPath.page newsIndex:indexPath.row];
[parallaxNavigationController pushViewController:newsViewController animated:YES];
}
新闻详情页面初始化UIScrollView部分:
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:applicationFrame];
scrollView.contentSize = CGSizeMake(applicationFrame.size.width, MAXFLOAT);
scrollView.delegate = self;
self.view = scrollView;
最后根据实际大小更新contentSize
UIScrollView *scrollView = (UIScrollView *)self.view;
scrollView.contentSize = CGSizeMake(320, self.newsContent.bottom);
UIScrollView的触摸事件会被框架接收处理吗?还是我对scroll view的处理有错误呢?