更换方法名:safeObjectAtIndex1 -> xpSafeObjectAtIndex
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
}
|
||||
#pragma mark - SDCycleScrollViewDelegate
|
||||
- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index {
|
||||
HomeBannerInfoModel * bannerInfo = [self.bannerList safeObjectAtIndex1:index];
|
||||
HomeBannerInfoModel * bannerInfo = [self.bannerList xpSafeObjectAtIndex:index];
|
||||
if(bannerInfo != nil && self.delegate && [self.delegate respondsToSelector:@selector(selectBannerListWithModel:)]){
|
||||
[self.delegate selectBannerListWithModel:bannerInfo];
|
||||
}
|
||||
@@ -120,7 +120,7 @@
|
||||
return cell;
|
||||
}
|
||||
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
PIHomeItemModel *model = [self.itemList safeObjectAtIndex1:indexPath.row];
|
||||
PIHomeItemModel *model = [self.itemList xpSafeObjectAtIndex:indexPath.row];
|
||||
if(model != nil && self.delegate && [self.delegate respondsToSelector:@selector(selectItemWithModel:)]){
|
||||
[self.delegate selectItemWithModel:model];
|
||||
}
|
||||
|
Reference in New Issue
Block a user