iOS无法移动UIView

时间:2015-01-05 04:47:20

标签: ios uiview

NSLog(@"Before: %f",_inputView.frame.origin.y);
[UIView animateWithDuration:animationDuration animations:^{
    [_inputView setFrame: CGRectMake(_inputView.frame.origin.x, 0, _inputView.frame.size.width, _inputView.frame.size.height)];
}completion:^(BOOL finished){
    NSLog(@"After: %f",_inputView.frame.origin.y);
}];

我使用此代码移动我的UIView,但它不移动。 (日志 - >之前:520.00之后:520.00)

0 个答案:

没有答案