GithubHelp home page GithubHelp logo

favret / ui-queueview Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

a queue view display a list of items stacked one on another. when an item is pop from the queue the next item appear.

Objective-C 100.00%

ui-queueview's Introduction

ui-queueview

An instance of UIQueueView is a means for displaying and editing hierarchical lists of information.

A queue view display a list of items stacked one on another. Users can pop item with dragging it. When an item is pop from the queue the next item appear. The cell comprising the individual items of the queue are UIView objects; UIQueueView uses this cell to draw the visible items of the queue.

Installation

  • Download UIQueueView source files.
  • Add the downloaded source files to your project.

Usage

Go to the storyboard and drag a UIView. In the Identity inspector, set its Class to UIQueueView. That is the essential step for hooking up a scene from the storyboard with the UIQueueView. Don’t forget this or your UIQueueView won’t be used!

In the Identity inspector, you can define two property:

  • numberOfItem, The number of items in queue view.
  • itemIdentifier, The identifier for the cell. This parameter must not be nil and must not be an empty string.

Managing the Delegate and the Data Source

Datasource Methods

queueView:cellForItemAtIndex: Asks the data source for a cell to insert in a particular location of the queue view.

numberOfItemInQueueView: Asks the data source to return the number of items in the queue view.

movingPositionsForPopItemInQueueView: Asks the data source to return the positions which allow users to pop an item.

Delegate Methods

queueView:didMovingItemAtIndex:toPosition:withAngle: Tells the delegate that the queue view moving an item.

queueView:didFinishMovingItemAtIndex:toPosition:withAngle: Tells the delegate that the queue view has moving an item.

Creating Cell

  • Create a xib file
  • In the UIQueueView's Identity inspector set the property itemIdentifier withe the name of the created xib file

Visual Exemple

Soon...

ui-queueview's People

Contributors

favret avatar

Watchers

 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.