【发布时间】:2012-01-22 19:07:18
【问题描述】:
我有这样的方法:
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
//Use to animate drag
UITouch *touch = [touches anyObject];
CGPoint currentLocation = [touch locationInView:self];
[self colorDragedOver:currentLocation];
[touch release];
}
我是否需要释放 UITouch 或 CGPoint 以防止任何泄漏?
谢谢!
【问题讨论】:
-
memory management rules 简单且包罗万象。
标签: objective-c ios xcode memory-management