You are storing NSDictionary
instances in self.blogPosts
, but then in
cell.textLabel.text = [self.blogPosts objectAtIndex:indexPath.row];
you are assigning one of them to text
, which expects a NSString
. The compiler is not catching it since objectAtIndex:
returns an object of type id
, which can potentially be anything.
A possible fix (but it really depends on what you need) could be
cell.textLabel.text = self.blogPosts[indexPath.row][@"title"];