zoukankan      html  css  js  c++  java
  • 加了这玩意 tableview 没法滚动了,

    1, [UIViewanimateWithDuration:1000.0fanimations:^{

            self.mTableView.contentOffset = CGPointMake(0, self.mTableView.contentSize.height - 200);

     

        }];

    2,  self.mTableView.contentOffset = CGPointMake(0, self.mTableView.contentSize.height);

    第一个不调用 cellforrow,

                self.mTableView.contentOffset = CGPointMake(0, self.mTableView.contentSize.height - 350);

    这个会调用的,

    3,没有新的cell出来就不调用了,就是contentoffset的时候,下降的时候 是否调用跟动画有关系,fuck,

      [UIViewbeginAnimations:nilcontext:nil];

        [UIViewsetAnimationDelegate:self];

        [UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];

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

        [UIViewcommitAnimations];

    当键盘弹出有动画的时候,contentoffset收回来的时候,是不会调用 cellfrorow的,

    1,调用cellforrow,

    2,有新的cell,

    3,frame 改变, 会出现动画的效果,

     

  • 相关阅读:
    bat 批处理编写
    dos 命令
    反射
    反爬机制和破解方法汇总
    pandas
    谷歌历史浏览器下载
    python-----pip安装源选择(亲测有效)
    deepin 20.1 系统未安装pip
    python自带库-----os.path
    python 自带库---os库
  • 原文地址:https://www.cnblogs.com/guligei/p/3498348.html
Copyright © 2011-2022 走看看