Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shift0106 opened this issue Jun 6, 2014 · 4 comments

Comments

@shift0106
Copy link

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

@xhzengAIB
Copy link
Member

@shift0106
其实这些都是在内部做好的了!你在哪个时机做了这些操作呢?

jack

@shift0106
Copy link
Author

点击列表中的某一条新闻,显示新闻详情页的时候。内部做好了是指什么呢?

@xhzengAIB
Copy link
Member

你的意思是你在新闻的详细页里面做自己的东西吗?

@shift0106
Copy link
Author

嗯。具体的内容不是由自己确定吗?文档里没有写如何添加新闻详细页,我看了一下就这么做了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants