mardi 5 mai 2015

Assigning image from another class

For some reason the image is not showing with this code:

YellowClass.h

@property (strong, nonatomic) IBOutlet UIImageView *myImage;

BlueClass.m

YellowClass *yellowClass = [[YellowClass alloc] init];
yellowClass.myImage.image = [UIImage imageNamed:@"Img.png"];

Aucun commentaire:

Enregistrer un commentaire