通過(guò)設(shè)置UIView layer的 contents屬性
跨框架賦值需要進(jìn)行橋接
self.view.layer.contents = (__bridgeid_Nullable)([UIImageimageNamed:@"123"].CGImage);
通過(guò)設(shè)置UIView layer的 contents屬性
跨框架賦值需要進(jìn)行橋接
self.view.layer.contents = (__bridgeid_Nullable)([UIImageimageNamed:@"123"].CGImage);