We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the best way to get the tree index path for an item?
I looked through the code and the examples for a method like -(NSIndexPath *)indexPathForItem:(NSDictionary *)item;
-(NSIndexPath *)indexPathForItem:(NSDictionary *)item;
The text was updated successfully, but these errors were encountered:
Almost! :)
All public API is in TreeTable.h file.
There is a method that does exactly what you asked:
Except it accepts a cell - not a dictionary.
Sorry, something went wrong.
Thanks! Unfortunately in the case I'm working on I don't have access to the cell, only the item
I'm sure you know better than me how to make an index path from a data source item of yours.
If you want to convert general index path (2 indices) into multidimensional tree index path you can use:
and vice versa:
Make sure to check 3 other branches for extra examples on how to use this component.
Cheers!
No branches or pull requests
What is the best way to get the tree index path for an item?
I looked through the code and the examples for a method like
-(NSIndexPath *)indexPathForItem:(NSDictionary *)item;
The text was updated successfully, but these errors were encountered: