
UICollectionView 集合视图
小手一背爱谁谁
这个作者很懒,什么都没留下…
展开
-
iOS UICollectionView报错The behavior of the UICollectionViewFlowLayout is not defined because:
报错信息The behavior of the UICollectionViewFlowLayout is not defined because:Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.滚动视图即(UICollectionView或者UIScrollView 等继承自UIScrollView的视图适用)//设置控制器不自动计算原创 2021-06-22 11:26:22 · 813 阅读 · 0 评论 -
iOS tableView与collectionView的样式切换以及间距问题处理
#define ScreenWidth ([UIScreen mainScreen].bounds.size.width)#define Screenheight ([UIScreen mainScreen].bounds.size.height)@property (weak,nonatomic) IBOutletUICollectionView *collectionV原创 2016-12-27 11:02:22 · 1339 阅读 · 0 评论 -
iOS collectionView返回顶部
// 方法一[_collectionViewscrollToItemAtIndexPath:[NSIndexPathindexPathForRow:0inSection:0] atScrollPosition:UICollectionViewScrollPositionNone原创 2016-12-27 11:38:25 · 2085 阅读 · 0 评论 -
ios collectionView点击后只选中一个cell并改变样式
//按钮金额数组@property (nonatomic,strong)NSArray *moneyArr;//选中后添加的数组@property (nonatomic,strong)NSMutableArray *rightLabelArray;- (void)initCollectionView:(UIView *)veew { _moneyArr = @[@...原创 2017-01-17 16:55:04 · 7906 阅读 · 0 评论 -
collectionView代理方法快速设置cell大小上下左右间隔
#define JianGe 25#define GeShu 4#define ScreenWidth ([UIScreen mainScreen].bounds.size.width)#define Screenheight ([UIScreen mainScreen].bounds.size.height)//定义每个UICollectionView 的大小- ( CG...原创 2017-03-20 12:33:19 · 8655 阅读 · 0 评论 -
iOS collectionView 单行刷新
[_collectionViewreloadItemsAtIndexPaths:[NSArrayarrayWithObjects:[NSIndexPathindexPathForRow:indexPath.row inSection:0],nil]];原创 2017-06-28 11:24:15 · 7202 阅读 · 0 评论 -
iOS11 UITableView,UICollectionView适配
self.extendedLayoutIncludesOpaqueBars = YES; if (@available(iOS 11.0, *)) { self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; } else { ...原创 2018-02-27 23:11:13 · 1106 阅读 · 0 评论 -
iOS collectionView Section Header 设置
#import "Cell.h"static NSString *ident = @"Cell";#import "HeaderCollectionReusableView.h"static NSString *head = @"HeaderCollectionReusableView"; - (void)viewDidLoad { [super vie...原创 2018-04-21 22:38:16 · 8406 阅读 · 0 评论 -
iOS tableView 加载到最后一行之后再刷新一次页面方法
// tableview 加载完成可以调用的方法 -(void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { if([indexPath row] =...原创 2018-10-21 01:11:53 · 1234 阅读 · 0 评论