PSCollectionView icon indicating copy to clipboard operation
PSCollectionView copied to clipboard

when has headerView, some cell can`not selected

Open i255979 opened this issue 10 years ago • 0 comments

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]; }

i255979 avatar Dec 02 '15 17:12 i255979