当我弹出到父控制器时,我使用委托将两个字符串传递给父控制器。
if (![clientIdd length] == 0)
{
[self.clientIdDelegate passClientId:clientIdd andCouncelorId:councelorId];
[self.navigationController popViewControllerAnimated:YES];
}
我启用了Zombies并收到如下错误:
[CFString respondsToSelector:]: message sent to deallocated instance 0x7a77f8e0.
有人可以帮忙吗?
答案 0 :(得分:0)
使用以下代码检查clientIdd是否为NSNull。
if(clientIdd == (id)[NSNull null])
如果是这种情况,那么找出clientIdd在代码中变为null的原因。