zoukankan      html  css  js  c++  java
  • 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;//排序项目

  • 相关阅读:
    web前端-----第二弹CSS
    web前端-----第一弹html
    mysql数据库第三弹
    mysql数据库第二弹
    mysql数据库第一弹
    django
    mysql基础
    面向对象进阶
    继承、多态、多态性
    面向对象的程序设计
  • 原文地址:https://www.cnblogs.com/Camier-myNiuer/p/3780188.html
Copyright © 2011-2022 走看看