UIView background sizing issue

后端 未结 7 800
梦如初夏
梦如初夏 2021-01-28 07:06

I\'m adding a UIImageView to the UIViewController\'s UIView as I would normally, with the frame of the image view being the same as self.view to make sure that the

7条回答
  •  星月不相逢
    2021-01-28 07:24

    Try to change self.view.frame to self.view.bounce when you add imageView into self.view.

    UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.view.frame];
    

    Or just use CGRectMake(0,0,320,568)

提交回复
热议问题