Skip to content

Set UIImage property not working #3

@jasanchezsa

Description

@jasanchezsa

Hello, first congratulations for the project. Sorry for my English.

This code working:

UIImageViewAligned *imageAlign = [[UIImageViewAligned alloc] initWithFrame:CGRectMake(0, 0, 280, 280)];
[imageAlign setImage:[UIImage imageNamed:@"exampleImage.png"]];
imageAlign.contentMode = UIViewContentModeScaleAspectFit;
imageAlign.alignBottom = YES;
imageAlign.alignLeft = NO;
imageAlign.alignRight = NO;
imageAlign.alignTop = NO;
[self.viewContent addSubview:imageAlign];
[imageAlign setBackgroundColor:[UIColor greenColor]];

But when I use an image in memory that comes from another UIViewController is not working:

imageAlign.image = self.currentImage;

Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions