iOS 设置UIView背景图片 2020-11-10 本文已影响0人 LoveBe UIImage *image = [UIImage imageNamed:@"QRCode"]; self.view.layer.contents = (id)image.CGImage;