diff --git a/iOS/DoraemonKit/Src/Core/Entry/Home/DoraemonHomeViewController.m b/iOS/DoraemonKit/Src/Core/Entry/Home/DoraemonHomeViewController.m index 50a9cdd8f..7d11206b2 100644 --- a/iOS/DoraemonKit/Src/Core/Entry/Home/DoraemonHomeViewController.m +++ b/iOS/DoraemonKit/Src/Core/Entry/Home/DoraemonHomeViewController.m @@ -147,11 +147,11 @@ - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSe } - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { - DoraemonHomeCell *cell = [self.collectionView dequeueReusableCellWithReuseIdentifier:DoraemonHomeCellID forIndexPath:indexPath]; NSInteger row = indexPath.row; NSInteger section = indexPath.section; if (section < _dataArray.count) { + DoraemonHomeCell *cell = [self.collectionView dequeueReusableCellWithReuseIdentifier:DoraemonHomeCellID forIndexPath:indexPath]; NSDictionary *dict = _dataArray[section]; NSArray *pluginArray = dict[@"pluginArray"]; NSDictionary *item = pluginArray[row];