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];

}

相關文章
相關標籤/搜索