iphone - EAOutputStream 写入 :maxLength: - 230 failed to write because stream does not have space available

标签 iphone ios external-accessory

我在用这个。在我将我的 iPhone 升级到 IOS 6.1 之前,它运行良好。

[[session_ipos outputStream] write:ui8Buff maxLength:tot];

现在它给出错误信息:

ERROR - /SourceCache/ExternalAccessory/ExternalAccessory-213/EAOutputStream.m:-[EAOutputStream write:maxLength:] - 230 failed to write because stream does not have space available

最佳答案

尝试在UI线程中编写

EASession _session

InvokeOnMainThread (() => { 
   _session.OutputStream.Write(byteArray);
});

关于iphone - EAOutputStream 写入 :maxLength: - 230 failed to write because stream does not have space available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14723156/

相关文章:

iphone - PresentModalViewController 不工作

ios - Reddit分享按钮 swift 3

iphone - 在定义的路径内裁剪 UIImage

iphone - 获取外部 CGRect

ios - 我应该使用哪种编码器来使用 NSCoder 来编码长属性?

ios - UIApplication -beginReceivingRemoteControlEvents 导致音乐应用接管音频

c# - ExternalAccessory 输入流/输出流为空?

ios - 外部附件框架测试硬件

ios - 使用swift 3在tableVIew中自动选择单元格

iOS UITextInput 控件 : Receiving forward-delete key from hardware keyboard