Skip to content

Instantly share code, notes, and snippets.

@dam13n
Created November 28, 2015 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dam13n/ca17eb1a94733c91f665 to your computer and use it in GitHub Desktop.
Save dam13n/ca17eb1a94733c91f665 to your computer and use it in GitHub Desktop.
if ([[_imageArray objectAtIndex:indexPath.row] isKindOfClass:[UIImage class]]) {
cell.imgView.image = [_imageArray objectAtIndex:indexPath.row];
} else if ([[_imageArray objectAtIndex:indexPath.row] isKindOfClass:[NSString class]]) {
cell.imgView.image = [UIImage imageNamed:[_imageArray objectAtIndex:indexPath.row]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment