开发者

resignFirstResponder and proofreader/PRDBinit 16 byte leak?

We're having a minor issue dealing with the pesky iPhone keyboard.

We have tried

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

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

}

and tried using

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

    [oneTextField resignFirstResponder]; // 100% leak 开发者_如何学运维for 16 bytes 
     // some more textfields.

return YES;

}

And however we do this, we get a pesky leak of 16 bytes. This ONLY happens once. We get no more than 16 bytes of leaks during a 30minute run with the instruments throughout the entire application.

The leak occurs when the keyboard dissapeares after you've tapped all of the textfields and tapping either the background/returnkey.

Now i'm calling out for a helping hand, since this is the only remaining memory leak that we have in our current project, and we want it taken care of. And i'm speaking in mafia terms.


This issue was resolved by getting a new iPhone. For those of you that also has a leak such as this, one of my coworkers said that this is a 100% false-positive.

Happy coding!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜