V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
belanote
V2EX  ›  iOS

AVAudioRecord 对象 调用 record 方法返回 nil

  •  
  •   belanote · 2015-03-05 16:22:21 +08:00 · 2113 次点击
    这是一个创建于 3342 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    3 条回复    2015-03-30 17:41:27 +08:00
    keithellis
        1
    keithellis  
       2015-03-05 16:30:00 +08:00
    不是返回 BOOL 吗……
    belanote
        2
    belanote  
    OP
       2015-03-05 16:34:06 +08:00
    @keithellis 问题就是它没返回 bool 而是返回了 nil...
    WeeTom
        3
    WeeTom  
       2015-03-30 17:41:27 +08:00
    AVAudioRecord 对象 被释放了吧?
    放到property里试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2992 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:30 · PVG 22:30 · LAX 07:30 · JFK 10:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.