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