belanote
V2EX  ›  iOS

AVAudioRecord 对象 调用 record 方法返回 nil

  •  
  •   belanote · Mar 5, 2015 · 3273 views
    This topic created in 4263 days ago, the information mentioned may be changed or developed.

    如题, 有人知道是为啥么 AVAudioSession也设置了 麦克风也打开了....

    3 replies  •  2015-03-30 17:41:27 +08:00
    keithellis
    keithellis
    Mar 5, 2015
    1
    不是返回 BOOL 吗……
    belanote
    belanote
    OP
    Mar 5, 2015
    2
    @keithellis 问题就是它没返回 bool 而是返回了 nil...
    WeeTom
    WeeTom
    Mar 30, 2015
    3
    AVAudioRecord 对象 被释放了吧?
    放到property里试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4544 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:34 · PVG 17:34 · LAX 01:34 · JFK 04:34
    ♥ Do have faith in what you're doing.