belanote
V2EX  ›  iOS

AVAudioRecord 对象 调用 record 方法返回 nil

  •  
  •   belanote · Mar 5, 2015 · 2952 views
    This topic created in 4119 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   ·   3136 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 00:36 · PVG 08:36 · LAX 17:36 · JFK 20:36
    ♥ Do have faith in what you're doing.