在 Objective CI 中使用此代码将图像缩放到我的背景。我怎样才能在 Swift 中实现这一点。
path = [[NSBundle mainBundle] pathForResource:@"This" ofType:@"png"];
image = [[UIImage alloc] initWithContentsOfFile:path];
在 Objective CI 中使用此代码将图像缩放到我的背景。我怎样才能在 Swift 中实现这一点。
path = [[NSBundle mainBundle] pathForResource:@"This" ofType:@"png"];
image = [[UIImage alloc] initWithContentsOfFile:path];