belanote
V2EX  ›  iOS

AVAudioRecord 对象 调用 record 方法返回 nil

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

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

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