• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UICollectionViewCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UICollectionViewCell


  • Subject: Re: UICollectionViewCell
  • From: Luke the Hiesterman <email@hidden>
  • Date: Thu, 11 Apr 2013 19:23:24 -0700

How are you registering the reuseIdentifier? Do you use registerClass or registerNib?

Luke

On Apr 11, 2013, at 7:10 PM, koko <email@hidden>
 wrote:

> I have subclassed UICollectionViewCell as Cell and defined a property:
>
> @property (nonatomic, strong) IBOutlet UIImageView *imageView;
>
> I have a Cell.xib whose owner is Cell.  The Cell Object contains a UIImageView which is connected to the above property.
>
> In collectionView:cellForItemAtIndexPath I do
>
>    static NSString *cellIdentifier = @"cvCell";
>    CVCell *cell = (CVCell *)[collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
>
>    [cell.imageView setImage:self.sampleImage];
>    return cell;
>
>
> sampleImage is defined as
>
> @property (nonatomic, strong) UIImage *sampleImage;
>
> and initialized by
>
>    self.sampleImage = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"earth" ofType:@"png"]];
>
>
> My problem :  The image is not displayed in the  Cell  … what am I missing?
>
> -koko
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: UICollectionViewCell
      • From: koko <email@hidden>
References: 
 >UICollectionViewCell (From: koko <email@hidden>)

  • Prev by Date: UICollectionViewCell
  • Next by Date: Re: UICollectionViewCell
  • Previous by thread: UICollectionViewCell
  • Next by thread: Re: UICollectionViewCell
  • Index(es):
    • Date
    • Thread