- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
NSMutableDictionary *tabsDict = [tabs objectAtIndex:indexPath.row];
NSString *identifier = [tabsDict objectForKey:@"destination"];
NSString *title = [tabsDict objectForKey:@"name"];
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:identifier forIndexPath:indexPath];
UILabel *label = (UILabel *)[cell viewWithTag:10];
label.text = title;
return cell;
}
When I run my app the UILabel is not recognized so no text is showing in the label in the cell. Could someone explain why it's not? I just started having this problem in Xcode 6.