答案 0 :(得分:0)
用于将[从相机]拍摄的图像设置为图像视图:
extension String {
public var url: NSURL {
return NSURL(fileURLWithPath:self)
}
public var stringByDeletingLastPathComponent: String {
return String(url.URLByDeletingLastPathComponent)
}
}