首页 > 其他 > 详细

动画 + 设置contentoffset,然后就 蛋疼了,

时间:2014-04-05 01:40:12      阅读:901      评论:0      收藏:0      [点我收藏+]

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

动画 + 设置contentoffset,然后就 蛋疼了,,布布扣,bubuko.com

动画 + 设置contentoffset,然后就 蛋疼了,

原文:http://www.cnblogs.com/guligei/p/3645142.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!