I create an UIImage view in interface builder, how to change its frame (position&size) in code? <p>I have made the following changes in code for the image view, but it doesn't take effect at all. I think the key things is I created the image view in IB instead of in code.</p> <pre><code>userInfoBackground.frame = CGRectMake(0, 0, 200, 100); userInfoBackground.contentMode = UIViewContentModeScaleToFill; </code></pre> <p>What shall I do next? Thanks.</p>