We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
新闻列表页项目点击事件如下: (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的处理有错误呢?
The text was updated successfully, but these errors were encountered:
@shift0106 其实这些都是在内部做好的了!你在哪个时机做了这些操作呢?
jack
Sorry, something went wrong.
点击列表中的某一条新闻,显示新闻详情页的时候。内部做好了是指什么呢?
你的意思是你在新闻的详细页里面做自己的东西吗?
嗯。具体的内容不是由自己确定吗?文档里没有写如何添加新闻详细页,我看了一下就这么做了
No branches or pull requests
新闻列表页项目点击事件如下:
(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的处理有错误呢?
The text was updated successfully, but these errors were encountered: