Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 辞职FirstResponder和校对员/PRDBinit 16字节泄漏?_Iphone_Objective C_Memory Leaks_Uitextfield_Uikeyboard - Fatal编程技术网

Iphone 辞职FirstResponder和校对员/PRDBinit 16字节泄漏?

Iphone 辞职FirstResponder和校对员/PRDBinit 16字节泄漏?,iphone,objective-c,memory-leaks,uitextfield,uikeyboard,Iphone,Objective C,Memory Leaks,Uitextfield,Uikeyboard,我们在处理讨厌的iPhone键盘时遇到了一个小问题 我们已经试过了 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [oneTextField resignFirstResponder]; // 100% leak for 16 bytes // some more textfields. } 并尝试使用 -(BOOL)textFieldShouldReturn:(UITextFi

我们在处理讨厌的iPhone键盘时遇到了一个小问题

我们已经试过了

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {

     [oneTextField resignFirstResponder];  // 100% leak for 16 bytes 
     // some more textfields.

}
并尝试使用

-(BOOL)textFieldShouldReturn:(UITextField *)textField{

    [oneTextField resignFirstResponder]; // 100% leak for 16 bytes 
     // some more textfields.

return YES;

}
不管我们怎么做,我们都会得到一个令人讨厌的16字节的泄漏。这种情况只发生一次。在整个应用程序中,使用仪器运行30分钟,泄漏量不超过16字节

当您点击所有文本字段并点击background/Return(背景/返回)键后键盘消失时,就会发生泄漏


现在我呼吁大家伸出援助之手,因为这是我们当前项目中唯一剩下的内存泄漏,我们希望它得到解决。我用黑手党的术语说话

这个问题通过购买新的iPhone解决了。对于那些也有类似泄漏的人,我的一位同事说这是100%的假阳性


快乐编码

这个问题通过购买新的iPhone解决了。对于那些也有类似泄漏的人,我的一位同事说这是100%的假阳性


快乐编码

买一部新iPhone,你是认真的吗?买一部新iPhone让我开心-但是wtf?买一部新iPhone,你是认真的吗?买一部新iPhone让我开心-但是wtf?