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 改变, 会出现动画的效果,

     

  • 相关阅读:
    Python基础之内存管理与垃圾回收机制
    Git常用命令
    Git分支操作
    码云配置SSH公钥
    Git基本操作
    Git基本理论
    版本控制
    Python基础之Python语法
    成为一名JAVA高级工程师你需要学什么【转】
    一个java高级工程师的进阶之路【转】
  • 原文地址:https://www.cnblogs.com/guligei/p/3498348.html
Copyright © 2011-2022 走看看