【发布时间】:2015-12-16 06:32:44
【问题描述】:
以下内容曾经在 Swift 1.2 中工作:
var recordSettings = [
AVFormatIDKey: kAudioFormatMPEG4AAC,
AVEncoderAudioQualityKey : AVAudioQuality.Max.rawValue,
AVEncoderBitRateKey : 320000,
AVNumberOfChannelsKey: 2,
AVSampleRateKey : 44100.0]
现在,它给出了错误:
“类型表达式在没有更多上下文的情况下是模棱两可的”。
【问题讨论】:
标签: ios swift swift2 avfoundation xcode7