UIImage-PDF icon indicating copy to clipboard operation
UIImage-PDF copied to clipboard

Suggestions for setting image in button

Open JamaicanRumCream opened this issue 10 years ago • 0 comments

I have been having problems where the image placed in a button will always scale to fill the button, instead of respecting the provided sizes. I realize it's not the UIImage+PDF problem per se, but do you have any suggestions? Setting a standard PNG file yeilds the right results. self.logoImageButton.contentMode = UIViewContentModeScaleAspectFit; UIImage *someImage = [UIImage imageWithPDFNamed:@"Logo.pdf" atSize:CGSizeMake(500, 275)]; [self.logoImageButton setImage:someImage forState:UIControlStateNormal];

JamaicanRumCream avatar Jan 16 '15 03:01 JamaicanRumCream