V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
belanote
V2EX  ›  iOS

AVAudioRecord 对象 调用 record 方法返回 nil

  •  
  •   belanote · Mar 5, 2015 · 2881 views
    This topic created in 4081 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   ·   1426 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:59 · PVG 07:59 · LAX 16:59 · JFK 19:59
    ♥ Do have faith in what you're doing.