Git Product home page Git Product logo

collectionview's Introduction

CollectionView

   这里我在iOS中使用三种不同的方式实现UICollectionView,也就是一种瀑布流视图。分别使用storyboard、nib和纯代码的方式来实现。 ##1.项目说明    UICollectionView继承自UITableView,基本的实现方式同UITableView。用UICollectionView实现的视图就是所谓的瀑布流界面,很多的电商网站,图片浏览App都是采用了这种设计方式。在我的这个项目中,我分别使用三种不同的方式来实现CollectionView:storyboard、nib文件和纯代码,可以适用在多种不同的项目开发情境下。 ##2.动态加载    我在第四个例子中实现了使用UICollectionView进行动态增加一个Cell或者Section,主要使用了Lazy Load懒加载进行。并在插入一个Section的时候动态编辑Header头部视图。 ##3.实现效果 Alt text
   动态增加Cell和Section的效果如下:
Alt text
Alt text
Alt text

##4.技术博客 我的个人技术博客:http://blog.csdn.net/chenyufeng1991 。欢迎大家访问!

collectionview's People

Contributors

chenyufeng1991 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.