requestRecordPermission does nothing

后端 未结 4 838
深忆病人
深忆病人 2021-01-11 10:32

Since the update of iOS 7 there has been some changes with recording applications. I have an app that used to work with iOS 5 and 6, but when I tried to run it on iOS 7 - r

4条回答
  •  长情又很酷
    2021-01-11 11:18

    same for iOS 8 Simulator. AVAudioSession.sharedInstance().requestRecordPermission always returns true.On the other hand when you call

    UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!) 
    

    to open settings of your application on the simulator, microphone is never listed there.That would need to be tested on a real device.

提交回复
热议问题