I have some sport matches cataloged by year, and for every match I have the final result, the match date and the scorer(s).
I'm showing those matches in a 'Table View', like this:
So what I'd like to achieve is: when clicking on a cell, show the match details as shown in the picture.
I also found some libraries to achieve the accordion/expandable style, but no-one does the job. They just expand the cell and show another cell.
Try one of these:
you can user HVtableview for this purpose, Try this link https://github.com/xerxes235/HVTableView
You don't even need to use expandable/accordion in this case. Here is how you can tackle this. Lets says your cell size when normal is 40 and when particular clicked is 100. In heightForRowAtIndexPath you can check which cell is selected and return more height
Then what you can do is in didSelectRowAtIndexPath or a clickEvent method
So it will be your cell will be rendered all of it but based on height you are hiding or showing content.
Updated Answer with Enter Source
ViewController.m
The cleaner way is to create 2 cells with different identifiers and change it at run time when you click the cell. Check this question: Drop-Down List in UITableView in iOS