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

when has headerView, some cell can`not selected #41

Open
i255979 opened this issue Dec 2, 2015 · 0 comments
Open

when has headerView, some cell can`not selected #41

i255979 opened this issue Dec 2, 2015 · 0 comments

Comments

@i255979
Copy link

i255979 commented Dec 2, 2015

i add a header for PSCollectionView, and cause a bug, the index 2 (sometimes other) cell have no selected event dispatch. i debug it, and found that it cause by the NSStringFromCGRect and CGRectFromString, the two method "not completely interchangeable"
i fix the bug by create a new method instead of NSStringFromCGRect. and all is ok.

+(NSString *)toString:(CGRect)frame{
return [NSString stringWithFormat:@"{{%f, %f}, {%f, %f}}", frame.origin.x, frame.origin.y, frame.size.width, frame.size.height];
}

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

1 participant