callzhang / WokeAlarm

Your everyday alarm clock app, now socialized.
http://wokealarm.com
0 stars 0 forks source link

Wakers missing in sleepingView #56

Closed callzhang closed 9 years ago

callzhang commented 9 years ago

image

caoer commented 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.

callzhang commented 9 years ago

Some investigation: Normally, the content size should be positive: screen shot 2015-02-16 at 2 09 34 am However, the content size should is 0: image

callzhang commented 9 years ago

image

callzhang commented 9 years ago

Fixed temporarily

caoer commented 9 years ago

@callzhang what's the tmp fix? use non-blur?

contentSize is 0 is normal when using autolayout with scrollview.

callzhang commented 9 years ago

I used KVO to correct the offset. Is it related to top LayoutGuide?

caoer commented 9 years ago

@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.

callzhang commented 9 years ago

5677102f155b7f62f88b5a85568ee853ae9d90d9

callzhang commented 9 years ago

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

caoer commented 9 years ago

ah. interesting fix!!! thanks. I will look into this. don't close this issue yet.

callzhang commented 9 years ago

I used Reveal, it's a good tool in debugging UI issues.

callzhang commented 9 years ago

It could be related to topLayoutGuide?