GithubHelp home page GithubHelp logo

kb100824 / collapsabletable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gabrielpeart/rrncollapsablesectiontableview

0.0 1.0 0.0 339 KB

Collapsable table view sections with custom section header views.

License: MIT License

Objective-C 100.00%

collapsabletable's Introduction

GitHub License Carthage compatible

Requirements

XCode 6.4+, iOS 8.1+

Installation

In XCode, select 'Add Files To Project', and select the following

  • RRNCollapsableSectionHeaderProtocol.h
  • RRNCollapsableSectionHeaderReactiveProtocol.h
  • RRNCollapsableSectionItemProtocol.h
  • RRNCollapsableSectionTableViewController.h
  • RRNCollapsableSectionTableViewController.m

Usage

  1. Build a UITableView, either in code or from interface builder.
  2. Subclass UITableViewHeaderFooterView and conform to the RRNCollapsableSectionHeader Protocol. Create a nib for this subclass.
  3. Subclass RRNCollapsableTableViewController and do the following inside your subclass:
    • override 'collapsableTableView' and return your table view
    • override 'model' and return a pointer to an array of objects, which conform to RRNCollapsableSectionItem Protocol.
    • override 'sectionHeaderNibName' and return the filename of the nib you created in step 2.

Try the Demo by running the 'Example' scheme in the 'Development' workspace.

Contributions

Please use the 'Development' workspace.

collapsabletable's People

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.