【发布时间】:2012-03-08 23:58:45
【问题描述】:
- (IBaction)switchview6:(id)sender {
information *info = [[Information alloc] initWithNibName:nil bundle nil];
[self presentModalViewController:info animated:YES]; }
然后我得到这个错误:
Potential leak of an object allocated on line 23 and stored into "info"
请问我的朋友,我该如何解决这个问题?你能在正确的时候给我输入准确的行吗? 看了很多看不懂的题目。
【问题讨论】:
-
您听说过Memory Management in Objective-C 吗?并且不要要求我们为您编写代码。这不是问答论坛。
标签: xcode memory-leaks