UIView background sizing issue

后端 未结 7 734
梦如初夏
梦如初夏 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:17

    Try UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.view.bounds]; isntead. Using bounds instead of frame

提交回复
热议问题