![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UITableView
x1198928367
法律上开发围殴覅
展开
-
给TableView或者CollectionView的cell添加简单动画
只要在willDisplayCell方法中对将要显示的cell做动画即可:- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{ NSArray *array原创 2016-06-30 10:43:33 · 3154 阅读 · 0 评论 -
去掉UITableView的section的粘性,使其不会悬停
//有时候使用UITableView所实现的列表,会使用到section,但是又不希望它粘在最顶上而是跟随滚动而消失或者出现 - (void)scrollViewDidScroll:(UIScrollView *)scrollView { if (scrollView == _tableView) { CGFloat section原创 2016-06-30 10:49:41 · 1654 阅读 · 0 评论 -
tableView 的headerView下拉缩放
// CGFloat offsetY = scrollView.contentOffset.y;// CGFloat scale = 1-(offsetY/70);// scale = (scale >1)? scale : 1;// self.tableHeadView.transform = CGAffineTransformMakeScale(原创 2016-07-18 13:00:05 · 318 阅读 · 0 评论 -
设置个人中心header下拉变大
第一步:添加一个顶部的View // 设置tableView头部缩放view _topView = [[UIViewalloc]initWithFrame:ccr(0,0, SCREEN_WIDTH,0)]; _topView.backgroundColor = [UIColorcolorWithHexString:@"c10000"]原创 2016-08-31 17:54:46 · 443 阅读 · 0 评论