How to can we add expand and collapse cell at the bottom of tableview in swift

I want to expand tableview cell on it's click. There is a tableview in which two cells are expandable and others are not. I need when i click on expandable cell it should show cells under it and on clicking again it should hide
Any one can reply my question .
You asked 2 hours ago and request again 15' later ! Come on, no one is there just to rush on your questions. 😉

And you'd better clarify your problem.

two cells are expandable and others are not.

So, you have cells A, B which are expandendable
And cells D, E, F below are not.
Correct ?

 I need when i click on expandable cell it should show cells under it and on clicking again it should hide

What is it you don't know how to do ? What is the problem exactly ?

To hide, you should set hidden to true for cells C, D, E and set their height to zero.

See this:
https://stackoverflow.com/questions/29886642/hide-uitableview-cell
How to can we add expand and collapse cell at the bottom of tableview in swift
 
 
Q