我们如何获得上一个细胞

时间:2016-07-05 12:39:53

标签: ios objective-c

我正在使用SBPageFlowView我们获得当前单元格。但我的目标是获得之前cell。我们如何获得之前的cell

- (void)didReloadData:(UIView *)cell :(NSInteger)index
{
    NSLog(@"%lu",(unsigned long)[randomSearchArray count]);

    NSLog(@"%ld",(long)index);
    UIImageView *imageView = (UIImageView *)cell;
    NSDictionary *dict=[randomSearchArray objectAtIndex:index -1 ];
    [imageView sd_setImageWithURL:[NSURL URLWithString:[dict objectForKey:@"groupimage"]] placeholderImage:imageplaceholder];
}

0 个答案:

没有答案