1
- (void)useX:(double)x {
self.XVelocity = x;
//This is called by the app delegate every 1/60 times a second
printf("%f",x);
}
在一种不同的方法我使用为什么我的双失去价值?
- (void)update {
printf("%f",self.XVelocity);
}
和self.XVelocity等于0,如何解决这个
没有看到一些完整的示例代码,这是很难回答。 –
请发布XVelocity的财产和伊娃尔宣言。 – JustSid
@property(nonatomic)double XVelocity;和双十五速度; – Aspyn