jjzjj

ActivePlayer

全部标签

ios - 使用ARC在iOS应用中未释放内存

我使用ARC构建了一个简单的琐事游戏。在使用Xcode中的“分配”性能分析工具对内存使用情况进行性能分析时,我看到内存并不总是被释放。对于问题的一个示例,我有一个ActivePlayer对象的类:ActivePlayer.h:@interfaceActivePlayer:NSObject@property(nonatomic,strong)NSString*name;@property(nonatomic)NSIntegeroverallScore;@property(nonatomic)NSIntegerquestionScore;-(id)initWithName:(NSStrin