我只是对此很陌生,不确定我是否必须定义旋转,如果我只是犯了一个错误或者只是做错了事情。
这是我到目前为止所拥有的:
- (IBAction)TestDrive:(id)sender {
CGPoint center = CGPointMake(car.center.x,
self.view.frame.origin.y + car.frame.size.height/2);
[UIView animateWithDuration:3 animations:^{
car.center = center;
}
completion:^(BOOL finished){
[self rotate]; //error here
}];
}
- (void)rotate;{
}
- (void)returnCar; {
}
- (void)continueRotation;{
}
@end