iOS小技巧---view动画

    [UIView animateWithDuration:Time animations:^{spa

        _toolBar.frame = CGRectMake(0, self.theSuperView.frame.size.height-_toolBar.frame.size.heightself.theSuperView.bounds.size.width,_toolBar.frame.size.height);animation

    }];it




-(void) keyboardDown{io

    [bar dismissKeyBoard];  // 缩键盘im

    [UIView beginAnimations:@"move" context:nil];animate

    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];di

    [UIView setAnimationDuration:0.25f];键盘

    CGRect newFrame = CGRectMake(0, 0, self.view.bounds.size.width, _choseTable.frame.size.height);view

    _choseTable.frame = newFrame;vi

    [UIView commitAnimations];

}

相关文章
相关标签/搜索