IOS超强表格控件GMGridView

转载地址:http://zyc-to.blog.163.com/blog/static/1715240020124235837247/


介绍:

iOS为我们提供UITableView类,实现了项目的纵向排列,而对于iOS整个操作桌面,所有应用程序却是以网格的形式排列,Gulam Moledina帮我们实现了这个效果,而且留有的接口与UITableView类似,使用起来相当方便。

简单解析:

属性:

layoutStrategy和style属性,用来设置显示样式。

editing属性,是否进入编辑状态。

minEdgeInsets属性设置项目与项目直接的间隔。

代理dataSource,actionDelegate,sortingDelegate,transformDelegate接收数据或是处理事件。

代理:

GMGridViewDataSource项目的多少以及样子(cell)

GMGridViewActionDelegate重点捕获了,项目被点击的事件

GMGridViewSortingDelegate项目重排时一系列事件

GMGridViewTransformationDelegate项目状态改变时的变化

方法:

- (void)reloadData;//最常用的重新加载数据

- (void)insertObjectAtIndex:(NSInteger)index animated:(BOOL)animated;//插入

- (void)removeObjectAtIndex:(NSInteger)index animated:(BOOL)animated;//移除

- (void)reloadObjectAtIndex:(NSInteger)index animated:(BOOL)animated;//重载

- (void)swapObjectAtIndex:(NSInteger)index1 withObjectAtIndex:(NSInteger)index2 animated:(BOOL)animated;//排序项目


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值