我卸載iOS10應用程序後位置服務停止工作。我在Info.plist中設置了描述,所以它讓我很困惑爲什麼位置服務會停止工作。該應用程序並不在設置 - >與隱私露面>定位服務 <key>NSLocationAlwaysUsageDescription</key>
<string>This app needs to use your location so that it may send it t
看看這裏Finding Altitude in Swift 再看看我的代碼 import CoreLocation
class ViewController: UIViewController, CLLocationManagerDelegate {
@IBOutlet weak var lbl: UILabel!
var player: AVAudioPlayer?