3 At the end of the current iteration of the run loop. 来源 2010-07-01 11:07:24 +0 Thanks alex。你能用例子来解释吗? 如果我为NSString使用initWithString,它将释放内存的位置?在方法的结尾? – vinay 2010-07-01 11:14:14 +1 initWithString不是自动版本 - 你应该自己释放它... – 2010-07-01 12:00:50 +1 @vinay:你应该阅读Apple的内存管理指南,因为这会回答你的许多问题:http://developer.apple.com/iphone/library/ documentation/cocoa/conceptual/memorymgmt/memorymgmt.html – 2010-07-01 12:11:40
Thanks alex。你能用例子来解释吗? 如果我为NSString使用initWithString,它将释放内存的位置?在方法的结尾? – vinay 2010-07-01 11:14:14
initWithString不是自动版本 - 你应该自己释放它... – 2010-07-01 12:00:50
@vinay:你应该阅读Apple的内存管理指南,因为这会回答你的许多问题:http://developer.apple.com/iphone/library/ documentation/cocoa/conceptual/memorymgmt/memorymgmt.html – 2010-07-01 12:11:40