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

兼容问题。 #1

Open
zfx5130 opened this issue Sep 14, 2016 · 3 comments
Open

兼容问题。 #1

zfx5130 opened this issue Sep 14, 2016 · 3 comments

Comments

@zfx5130
Copy link

zfx5130 commented Sep 14, 2016

你好,感觉你的Demo,我刚好能够用在自己的项目里,但是在测试的时候,我用8.4测试出现了一个问题,就是在向上滑动时,headView的层次关系进入到cell的底部,找了一下,是版本的不兼容,我调式了下现在可以了,我是这样处理的,
if ( ! header) {
// CollectionView自动将不再bounds内的headers移除了,所以,Headers可能为nil.这种情况下我们需要重新将其加回来 automatically removes headers not in bounds

        header = [self layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionHeader
                                                      atIndexPath:[NSIndexPath indexPathForItem:0 inSection:indexPath.section]];

        if (!CGSizeEqualToSize(CGSizeZero, header.frame.size)) {
            if ([self haveSection:indexPath.section]) {
                [allItems addObject:header];
            }
        }
        header.zIndex = 1024;//多加了这条语句

}
现在可以了,非常感谢,让我省了不少时间。

@yohunl
Copy link
Owner

yohunl commented Oct 26, 2016

谢谢你的反馈,我会更新一下的,也谢谢你

@Calor1e
Copy link

Calor1e commented Oct 27, 2016

你好,你的demo用在我的项目里面很好。我之前是iOS9,没有问题,但是现在换成了 xcode8 iOS10 就会崩溃 ,希望您处理一下

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

4 participants