ios - UIImageView will not resize to match UIView's frame -


i want background image, in ib set uiimageview constraints same size uiview. however, when select "back" on uinavigationbar, when navcontrol pops previous vc, what's there, briefly, before disappears: enter image description here

that is, uiimageview big double width of uiview, slides off-screen right, uiimageview's image drags on before disappearing.

i have tried programmatically, if set uiimageview's frame cgrectmake(0, 0, 100, 100), still goes off left side of uiview, if uiview's origin weren't @ top left corner, off screen. possible? how make image fits screen , doesn't go off?

if it's @ relevant, jpg i'm using in images.xcassets and, although can select in ib , appears, uiimageview's image white/blank, in viewdidload method need specify self.imageview.image = [uiimage imagenamed:@"hockeyice.jpg"].

  1. go main.storyboard
  2. select view in question
  3. click attributes inspector
  4. scroll down view, select mode: scale fill

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -