mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 05:51:42 +00:00
fix crash when typing and deleting on TypingDemoViewController.(beyond array)
This commit is contained in:
parent
fb64cc93d9
commit
9b9d67e1a9
@ -296,6 +296,9 @@
|
||||
- (CGSize)collectionView:(UICollectionView *)collectionView
|
||||
layout:(UICollectionViewLayout*)collectionViewLayout
|
||||
sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
if (indexPath.row >= letterSizes_.count) {
|
||||
return CGSizeZero;
|
||||
}
|
||||
NSValue *value = letterSizes_[indexPath.row];
|
||||
return value.CGSizeValue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user