zoukankan      html  css  js  c++  java
  • 动画 + 设置contentoffset,然后就 蛋疼了,

    [UIViewbeginAnimations:nilcontext:nil];

            [UIViewsetAnimationDelegate:self];

            [UIViewsetAnimationCurve:[[[notification userInfo] objectForKey:UIKeyboardAnimationCurveUserInfoKey] intValue]];

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

            //upperview

            if (kContentSize.height == 0) {

                kContentSize.height = kDefaultContentSizeHeight;

            }

            bottomView.frame = CGRectMake(bottomView.frame.origin.x, self.contentView.frame.size.height - keyboardHeight - kContentSize.height - textViewBgAndCursor*2, bottomView.frame.size.width, kContentSize.height + textViewBgAndCursor * 2);

            buyView.frame = CGRectMake(buyView.frame.origin.x,bottomView.frame.origin.y - buyView.frame.size.height, buyView.frame.size.width, buyView.frame.size.height);

            //tableview

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

            [selfadjustTableViewContentOffSetWhenShowboard];

            [UIViewcommitAnimations];

  • 相关阅读:
    图的连通性问题之tarjan算法
    图的连通性问题之强连通分量初步
    NOIP 2010 引水入城
    最短路经典例题 codevs 1557 热浪
    图的连通性问题之连通和最小环
    最短路径算法
    《数据结构与算法-Javascript描述》
    蓝天白云
    《慢慢来,一切都还来得及》
    聚餐
  • 原文地址:https://www.cnblogs.com/guligei/p/3645142.html
Copyright © 2011-2022 走看看