我正在为viewFrame.origin.x - 200;
获取“表达结果未使用”我只是试图为subView而不是ViewController设置动画。
- (IBAction)forwardAccountCreation:(id)sender
{ if (uiButton == sender) {
[UIView beginAnimations:@"animationView" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:0.4];
[UIView setAnimationBeginsFromCurrentState:YES];
CGRect viewFrame = [subView frame];
viewFrame.origin.x - 200;
[self.view addSubview:subView];
[UIView commitAnimations];
}
}