zoukankan      html  css  js  c++  java
  • 神医,全部的诡异动画,

     

    - (void)keyboardWillHide:(NSNotification*)notification {

        

        [UIViewbeginAnimations:nilcontext:nil];

        [UIViewsetAnimationDelegate:self];

        [UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];

        [UIViewsetAnimationDuration:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] floatValue]];

        bottomView.frame = CGRectMake(bottomView.frame.origin.x, bottomView.frame.origin.y + keyboardHeight, bottomView.frame.size.width, bottomView.frame.size.height);

        self.tableView.frame = CGRectMake(self.tableView.frame.origin.x, self.tableView.frame.origin.y + keyboardHeight, self.tableView.frame.size.width, self.tableView.frame.size.height);

        [UIViewcommitAnimations];

     

    }

    任何动画的地方都是 要么动画加的不对,要么是 没有关闭动画,

  • 相关阅读:
    maven笔记
    enum笔记
    mysql笔记
    git笔记
    spark笔记
    使用GitHub进行团队合作
    深度学习网站
    顶级论文索引网站
    研究生-数学建模集
    算法练习网站
  • 原文地址:https://www.cnblogs.com/guligei/p/3501655.html
Copyright © 2011-2022 走看看