Giter Site home page Giter Site logo

staticdatatableviewcontroller's Introduction

StaticDataTableViewController 2.0

This class enables animated hide/show of static cells (created in IB, using the option Content : Static cells) for UITableView

##Usage

  • add StaticDataTableViewController.h / .m to your project
  • just subclass your UITableViewController with the StaticDataTableViewController
  • always use this method for table view reload (- (void)reloadDataAnimated:(BOOL)animated) don't call [self.tableView reloadData]

to hide/show specific cells, to which you have an outlet

self.hideSectionsWithHiddenRows = YES; //YES, NO
[self cell:self.outletToMyStaticCell1 setHidden:hide];
[self cell:self.outletToMyStaticCell2 setHidden:hide];
[self reloadDataAnimated:YES];

to hide/show cells in an outlet collection

self.hideSectionsWithHiddenRows = YES; //YES, NO
[self cells:self.outletCollectionToMyStaticCells setHidden:hide];
[self reloadDataAnimated:YES];

to reload cell in an outlet collection

[self updateCells:self.outletCollectionToMyStaticCells];
[self reloadDataAnimated:YES];

to customize animations, just set these properties to desired values

self.insertTableViewRowAnimation = UITableViewRowAnimationRight;
self.deleteTableViewRowAnimation = UITableViewRowAnimationLeft;
self.reloadTableViewRowAnimation = UITableViewRowAnimationMiddle;

##Version History

Version 2.0.3

  • semantic version tagging

Version 2.0.2.1

  • Added support for Cocoa pods

Version 2.0.2

  • Added support for variable heights on static rows

Version 2.0.1

  • fixed critical bug

Version 2.0

  • added full row animation support

Version 1.1

  • added iOS5 back compatibility
  • added support for IBOutletCollections and hidding multiple cells with an array of IBOutles

##Note

  • Create outlets to UITableViewsCells, not their content views!
  • Don't call [self.tableView reloadData], ALWAYS use (reloadDataAnimated:)
  • if you want to hide the whole section, just create a IBOutletCollection to all its cell, and then use [self cells:setHidden:] with (self.hideSectionsWithHiddenRows = YES)

##License Apache License 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt

##Credits min:60 - Building perfect apps, for affordable price - https://min60.com

staticdatatableviewcontroller's People

Contributors

enfoiro avatar hartlco avatar peterpaulis avatar sebasrodriguez avatar serh2i avatar zummenix 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.