I’m really having trouble understanding why this isn’t working: I have a UIImageView in the nib and I need to override its frame in viewDidLoad, because the width will be changing based on user input. Here’s how I’ve tried to change its frame:
CGRect blueBarStart = blueBar.frame;
blueBarStart.size.width = .1*blueBarStart.size.width;
[blueBar setFrame:blueBarStart];
However blueBar is shown on load with its full, unaltered width. Not sure what I’m missing. Thanks for your help.
Turns out since I am using ‘Left’ as the mode for
UIImageView, it is forcing the full image in it to be shown, regardless of what I set the width to be.