标签更新错误时对象的位置重置

时间:2015-02-22 12:42:01

标签: ios objective-c debugging

我的游戏中有一个错误,所以每当我将标签更新到故事板中的位置时,我都会发现错误。 我怎么能解决这个问题,这是一个gamebreakinig bug。

-(IBAction)Button:(id)sender {
Int = 10;
Lable.text = [NSString stringWithFormat:@"%i", Int];
}
-(IBAction)Button2:(id)sender {
Image.center = CGPointMake(Image.center.x, 200);
}

0 个答案:

没有答案