I am trying to alter the width and height of an UIImageView object but for some reason I can't.
This is the code I used:
-(void)setMenuImages
{
self.menuImageButton.image=[UIImage imageNamed:@"myimage.jpg"];
self.menuImageButton.frame=CGRectMake(0,0,20,150);
}
What am I doing wrong? The (UIImageView) menuImageButton is not created programmatically, but from storyboard interface with initial leading, trailing, width and height constraints.