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

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2022-02-08
  • 2021-05-20
  • 2021-05-10
猜你喜欢
  • 2022-12-23
  • 2021-09-24
  • 2021-11-28
  • 2021-08-10
  • 2021-10-21
  • 2022-12-23
  • 2021-08-14
相关资源
相似解决方案