Closed callzhang closed 9 years ago
it is caused by EWBlurPresentSegue. looks like the collectionView's - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
is not being called correctly.
assigning to @callzhang for furthur investigation.
Some investigation: Normally, the content size should be positive: However, the content size should is 0:
Fixed temporarily
@callzhang what's the tmp fix? use non-blur?
contentSize is 0 is normal when using autolayout with scrollview.
I used KVO to correct the offset. Is it related to top LayoutGuide?
@callzhang I'd like to look at the code. can you attach the SHA here? suggest to put SHA if any for all issues for the sake of tracking progress.
5677102f155b7f62f88b5a85568ee853ae9d90d9
EWPeopleArrayChildViewController.m
[self.KVOController observe:self.collectionView keyPath:@"contentInset" options:NSKeyValueObservingOptionNew block:^(id observer, id object, NSDictionary *change) { DDLogInfo(@"Collection view insert changed to %@", NSStringFromUIEdgeInsets(self.collectionView.contentInset)); if (_collectionView.contentInset.top != 0) { UIEdgeInsets insert = self.collectionView.contentInset; insert.top = 0; self.collectionView.contentInset = insert; } }];
ah. interesting fix!!! thanks. I will look into this. don't close this issue yet.
I used Reveal, it's a good tool in debugging UI issues.
It could be related to topLayoutGuide?