Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Xcode 说 PHAsset 没有“位置”成员。
斯威夫特的补救措施是什么?
简短回答:您可能忘记导入 CoreLocation;
import Photos import CoreLocation let asset: AnyObject? = nil if let asset = asset as? PHAsset { let location = asset.location }
当我删除 CoreLocation 导入时,我可以复制您的错误。