mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 03:09:56 +00:00
Reset inspector selector implementation cache correctly
This commit is contained in:
parent
d9ea1b52ea
commit
6569893c23
@ -39,8 +39,8 @@
|
||||
- (void)didChangeCollectionViewDelegate:(id<ASCollectionViewDelegate>)delegate;
|
||||
{
|
||||
if (delegate == nil) {
|
||||
_delegateImplementsReferenceSizeForHeader = nil;
|
||||
_delegateImplementsReferenceSizeForFooter = nil;
|
||||
_delegateImplementsReferenceSizeForHeader = NO;
|
||||
_delegateImplementsReferenceSizeForFooter = NO;
|
||||
} else {
|
||||
_delegateImplementsReferenceSizeForHeader = [delegate respondsToSelector:@selector(collectionView:layout:referenceSizeForHeaderInSection:)];
|
||||
_delegateImplementsReferenceSizeForFooter = [delegate respondsToSelector:@selector(collectionView:layout:referenceSizeForFooterInSection:)];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user