MDSpreadView is a rewrite of
UITableView that allows for the display
of columns and column headers as well as rows. This repository serves to
demonstrate and test the MDSectionedTableView class. Please visit the
MDSpreadView repository for the
actual code :)
$ git clone https://github.com/mochidev/MDSpreadViewDemo $ git submodule init $ git submodule update
To include it into your projects either download the source, or run the following on your git repo:
$ cd <your_repo> $ git submodule add firstname.lastname@example.org:mochidev/MDSpreadView.git <local_subpath>/MDSpreadView
This will allow you to update it at anytime by running
$ git submodule update.
Simply add the
MDSpreadView submodule to
your project, add
#import "MDSpreadViewClasses.h" to the top of the files you
wish to use MDSpreadView in, and set the
MDSpreadView instance to one of your objects, much like you would do
Then, implement the datasource and delegate methods demonstrated in
- An MDSpreadViewCell is created just like a UITableViewCell is -- try to dequeue it from the spread view, otherwise create an autoreleased copy, then configure and return.
- The table headers are also made of cells, and are loaded just like UITableViewCells are.
- Works flawlessly with ~10000 cells on iPad 2/iPhone 4S, but you should use a sane amount for older devices.
- The bigger the cells, the faster it scrolls, since less are onscreen at a time (especially on older hardware)
- Row selection
- Custom cell sizes
- Column sorting
Coding Style Guidelines
Please see http://webkit.org/coding/coding-style.html
Copyright (c) 2011 Dimitri Bouniol, Mochi Development, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Mochi Dev, and the Mochi Development logo are copyright Mochi Development, Inc.
Also, it'd be super awesome if you credited this page in your about screen :)