Code Monkey home page Code Monkey logo

extensivecell's Introduction

DEPRECATED

ExtensiveCell

iOS TableViewCell component

alt tag

ECTableViewDataSource

	- (UITableViewCell *)extensiveCellForRowIndexPath:(NSIndexPath *)indexPath;

Similar to tableView:cellForRowAtIndexPath: from UITableViewDataSource.

Asks the data source for a cell to insert in a particular location of the table view. (required) The returned ExtensiveCell object is frequently one that the application reuses for performance reasons. You should fetch a previously created cell object that is marked for reuse by sending a dequeueReusableCellWithIdentifier: message to tableView.

The container displayed do not interfer with the indexPath. ECViewController manages the indexPath when you open/close a row. ECViewController will call viewForContainerAtIndexPath: to get the container view.

	- (UIView *)viewForContainerAtIndexPath:(NSIndexPath *)indexPath;

Asks the data source for a view to display in the container when selecting a row. You should fetch a previously created view object for performance reasons.

The ECViewcontroller tableview only has one container and reuses it.

	- (CGFloat)heightForExtensiveCellAtIndexPath:(NSIndexPath *)indexPath;

Similar to tableView:heightForRowAtIndexPath: from UITableViewDelegate.

Must return the height for the row at indexPath.

The container displayed do not interfer with the indexPath. yECViewControlle manages the indexPath when you open/close a row. ECViewController will size the container to fit its given view.

	- (NSInteger)numberOfSections;

Similar to numberOfSectionsInTableView: from UITableViewDataSource.

	- (NSInteger)numberOfRowsInSection:(NSInteger)section;

Similar to tableview:numberOfRowsInSection: from ITableViewDataSource. Do not consider the container (open or closed) when calculating the number of rows.

	- (void)extendCellAtIndexPath:(NSIndexPath *)indexPath;

Extends the cell at given indexPath. If an other cell is already extended, it closes. Only one cell can be extended at once.

extensivecell's People

Contributors

frankwu100 avatar iossoftwareengineer avatar kareem-hewady avatar lewisgodowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

extensivecell's Issues

fix for cellForRowAtIndexPath in ExtensiveCellContainer

The current else condition in cellForRowAtIndexPath results in a row disappearance when the container view is added. By doing a check on self.selectedRowIndexPath you can adjust the indexPath accordingly. This also fixes the index-out-of-range crashes that were caused by the same bug. So...

extensivecellfix

Hope this helps,

Richard

Last Row dropdown view does not work proper

Hi,

I have four rows and each row has a Custom View (another TableView) with height of 300 Pixels.
When I tap on last row the drop down does not work as expected.
I am not able to scroll table to last row. Some frame setting might needs update.
Also when drop down view is removed the animation is having hiccups.

Please see screenshot below.
screen shot 2014-03-10 at 5 18 04 pm

Suggestion!

First of all, your control is really cool!
What i would like to see as a feature is the ability to select a row without opening it's view so that the user would have the option to either see "more" or tap and go to the next screen.

Fork!

Hello!
I have done a fork of your repository where i have modifed it to support multible tableviews! Is this a feature you would like to have in your version?
If you also find use of this function i could be a contributor instead of having my own fork!?

Regards, Petteri

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.