Skip to content

添加的新闻详情页面(使用了一个UIScrollView)不能滑动 #26

Description

@shift0106

新闻列表页项目点击事件如下:
(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的处理有错误呢?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions