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

  • 相关阅读:
    HTML5编写规范
    v-if和v-show的区别
    为什么选择MpVue进行小程序的开发
    小程序的前世今生
    MpVue开发之框架的搭建
    MpVue开发之swiper的使用
    (三十二)单例设计模式
    再学习之Spring(面向切面编程).
    多线程编程学习五(线程池的创建)
    再学习之Spring(依赖注入).
  • 原文地址:https://www.cnblogs.com/guligei/p/3645142.html
Copyright © 2011-2022 走看看