0
爲什麼NSArray自動分配與arrayWithObjects dealloc如果已經被BObject對象使用?在teory NSArray中必須繼續分配所有的BObject續航時間......autorelease問題
[[BObject alloc] initObjectName:@"oneObject" states:
[NSArray arrayWithObjects:
[[State alloc] initStateName:@"stand_front" singleImg:[NSArray arrayWithObjects:[UIImage imageNamed:@"front_1.png"], nil]],
[[State alloc] initStateName:@"front_walking" frames:
[NSArray arrayWithObjects:
[UIImage imageNamed:@"front_1.png"],
[UIImage imageNamed:@"front_2.png"],
[UIImage imageNamed:@"front_3.png"],
[UIImage imageNamed:@"front_4.png"],
[UIImage imageNamed:@"front_5.png"],
[UIImage imageNamed:@"front_6.png"],
[UIImage imageNamed:@"front_7.png"],
[UIImage imageNamed:@"front_8.png"],
nil] duration:0.8 repeat:0],
nil]
isSolid:TRUE];
什麼是「BObject」傳遞的數組,它保留了'狀態:'參數? – 2010-05-15 01:40:42
不,它不保留州...我已經修補.. thx:D – BQuadra 2010-05-16 17:16:05