get cell by indexPath #142

Open
Nadavrbn opened this Issue May 15, 2012 · 6 comments

Comments

Projects
None yet
2 participants
@Nadavrbn

i have a viewcontroller with a kkgridview on it that the user is supposed to choose several cells (custom cells i have subclassed).
after the user has finished choosing i want to be able to retrieve those cells and perform manipulations on the data in them.
i haven't found a method that allows me to get any cell by it's indexpath.

i thought using the indexPathsForSelectedCells on the datasource collection itself but im not so sure about it because it may change while the user is selecting.

will the visibleIndexPaths property do any good for this? or is it just a collection of indexpath objects?

thanks i really need a solution for this.

@kolinkrewinkel

This comment has been minimized.

Show comment
Hide comment
@kolinkrewinkel

kolinkrewinkel May 19, 2012

Owner

-cellForRowAtIndexPath will give you a specific cell. -indexPathsForSelectedCells on the grid view instance will return the selected cells as an array of index paths.

Owner

kolinkrewinkel commented May 19, 2012

-cellForRowAtIndexPath will give you a specific cell. -indexPathsForSelectedCells on the grid view instance will return the selected cells as an array of index paths.

@Nadavrbn

This comment has been minimized.

Show comment
Hide comment
@Nadavrbn

Nadavrbn May 20, 2012

Thats what i'm looking for but i cant find this function anywhere (-cellForRowAtIndexPath). How do I call it?

Thats what i'm looking for but i cant find this function anywhere (-cellForRowAtIndexPath). How do I call it?

@kolinkrewinkel

This comment has been minimized.

Show comment
Hide comment
@kolinkrewinkel

kolinkrewinkel May 20, 2012

Owner

Oops - cellForItemAtIndexPath:

Owner

kolinkrewinkel commented May 20, 2012

Oops - cellForItemAtIndexPath:

@Nadavrbn

This comment has been minimized.

Show comment
Hide comment
@Nadavrbn

Nadavrbn May 21, 2012

Thats the data source method for filling up the grid, I want to extract a cell from a grid after i have already put data in it.

Thats the data source method for filling up the grid, I want to extract a cell from a grid after i have already put data in it.

@kolinkrewinkel

This comment has been minimized.

Show comment
Hide comment
@kolinkrewinkel

kolinkrewinkel May 21, 2012

Owner

Yes, the grid view will return the cell..

Owner

kolinkrewinkel commented May 21, 2012

Yes, the grid view will return the cell..

@Nadavrbn

This comment has been minimized.

Show comment
Hide comment
@Nadavrbn

Nadavrbn May 22, 2012

You mean calling the method that I wrote. that will just create a new cell
which is pretty unnecessary.
I think i will stick with my original method of picking the data from the
collection from which i built the grid but I think adding a function to
retrieve cells from the gridView's already created cells like UITableView's
-cellForRowAtIndexPath: will be a great addition to the library.

Thanks for your good work and help anyway!

On Tue, May 22, 2012 at 12:44 AM, Kolin Krewinkel <
reply@reply.github.com

wrote:

Yes, the grid view will return the cell..


Reply to this email directly or view it on GitHub:

#142 (comment)

You mean calling the method that I wrote. that will just create a new cell
which is pretty unnecessary.
I think i will stick with my original method of picking the data from the
collection from which i built the grid but I think adding a function to
retrieve cells from the gridView's already created cells like UITableView's
-cellForRowAtIndexPath: will be a great addition to the library.

Thanks for your good work and help anyway!

On Tue, May 22, 2012 at 12:44 AM, Kolin Krewinkel <
reply@reply.github.com

wrote:

Yes, the grid view will return the cell..


Reply to this email directly or view it on GitHub:

#142 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment