无法正确地动画SubView

时间:2013-11-25 23:56:16

标签: objective-c uiviewcontroller subview uiviewanimation

我正在为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];
  }

}

0 个答案:

没有答案