自定义弹出框报错“_BSMachError Unable to insert COPY_SEND”

报错内容如下:

2017-03-17 11:06:52.436666 TSG-Phone[48745:5416720] [Common] _BSMachError: port 8d03; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2017-03-17 11:06:52.437357 TSG-Phone[48745:5416720] [Common] _BSMachError: port 8d03; (os/kern) invalid name (0xf) "Unable to deallocate send right"


解决方法:

我在显示弹出框的时候,立即就将键盘弹起,因此报错,延时一段时间弹出键盘框即可

但是此方法治标不治本,希望大家有什么好的方法,告诉我

修改后代码:

-(void)showAlertView{
    [_alertView show];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [_nameField becomeFirstResponder];
    });
}


你可能感兴趣的:(ios)