首页 > 其他 > 详细

tableVIew/scrollVIew,点击按钮滑倒最下/最上.

时间:2014-09-15 19:06:29      阅读:187      评论:0      收藏:0      [点我收藏+]
//scrollVIew
1
//跳到最前 2 [_scrollView scrollRectToVisible:CGRectMake(0, 0, self.view.frame.size.width, 10) animated:YES]; 3 //跳到最后 4 [_scrollView scrollRectToVisible:CGRectMake(0, kHeight + 200 + _webView.frame.size.height, self.view.frame.size.width, kHeight + 250 + _webView.frame.size.height) animated:YES];
//tableView
1
//跳到最前 2 [_tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:YES]; 3 //跳到最后 4 [_tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:self.frameArray.count - 1 inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:YES];

 

tableVIew/scrollVIew,点击按钮滑倒最下/最上.

原文:http://www.cnblogs.com/kwame/p/3973276.html

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