GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - opfo/StaticDataTableViewController: Enables to hide static cells

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

49 Commits
49 Commits

Folders and files

NameName
Last commit message
Last commit date
StaticTableViewControllerSample
StaticTableViewControllerSample
 
 
.DS_Store
.DS_Store
 
 
Apache_License_2_0.txt
Apache_License_2_0.txt
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
StaticDataTableViewController.h
StaticDataTableViewController.h
 
 
StaticDataTableViewController.m
StaticDataTableViewController.m
 
 
StaticDataTableViewController.podspec
StaticDataTableViewController.podspec
 
 

Repository files navigation

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.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

About

Enables to hide static cells

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

5 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.