Skip to content
New issue

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

is there anyway to expand only cell at a time? if a cell is already expanded, and user tries to expand another cell, the first cell should be collapsed and the new cell should be expanded #19

Closed
Rj707 opened this issue Feb 14, 2016 · 6 comments

Comments

@Rj707
Copy link

Rj707 commented Feb 14, 2016

No description provided.

@xerxes235
Copy link
Collaborator

Yes there's an expandOnlyOneCell property for the HVTableView which you can set it to true. You will get only one cell expanded at the same time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi notifications@github.com wrote:


Reply to this email directly or view it on GitHub.

@Rj707
Copy link
Author

Rj707 commented Feb 19, 2016

Thanks, I got that point from your sample project, where you have put some
documentation before code.
On Feb 16, 2016 9:19 AM, "Hamidreza Vakilian" notifications@github.com
wrote:

Yes there's an expandOnlyOneCell property for the HVTableView which you
can set it to true. You will get only one cell expanded at the same time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi notifications@github.com wrote:


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#19 (comment)
.

@Rj707
Copy link
Author

Rj707 commented Feb 19, 2016

I need your help in another library, ill b very thankful to you, if you
could. I wan the same behaviour(expanding only one cell at a time) for
vppdropdown, so tell me whats the logic behing expanding only one cell. Its
urgent. And thanks once again
On Feb 16, 2016 9:19 AM, "Hamidreza Vakilian" notifications@github.com
wrote:

Yes there's an expandOnlyOneCell property for the HVTableView which you
can set it to true. You will get only one cell expanded at the same time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi notifications@github.com wrote:


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#19 (comment)
.

@xerxes235
Copy link
Collaborator

It's easy; HVTableView collapses the recent expanded cell and expands a new one

Sent from my iPhone

On Feb 19, 2016, at 2:31 PM, Rj Saadi notifications@github.com wrote:

I need your help in another library, ill b very thankful to you, if you
could. I wan the same behaviour(expanding only one cell at a time) for
vppdropdown, so tell me whats the logic behing expanding only one cell. Its
urgent. And thanks once again
On Feb 16, 2016 9:19 AM, "Hamidreza Vakilian" notifications@github.com
wrote:

Yes there's an expandOnlyOneCell property for the HVTableView which you
can set it to true. You will get only one cell expanded at the same time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi notifications@github.com wrote:


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#19 (comment)
.


Reply to this email directly or view it on GitHub.

@Rj707
Copy link
Author

Rj707 commented Feb 24, 2016

AOA Hamid!
i have a question. is there a way to navigate to the
other view controller when clicking on collapsed/expanded cell. as
HVTableView didselectrowatindexpath method expands/collapses the cell.
Thanks

On Sat, Feb 20, 2016 at 4:52 AM, Hamidreza Vakilian <
notifications@github.com> wrote:

It's easy; HVTableView collapses the recent expanded cell and expands a
new one

Sent from my iPhone

On Feb 19, 2016, at 2:31 PM, Rj Saadi notifications@github.com wrote:

I need your help in another library, ill b very thankful to you, if you
could. I wan the same behaviour(expanding only one cell at a time) for
vppdropdown, so tell me whats the logic behing expanding only one cell.
Its
urgent. And thanks once again
On Feb 16, 2016 9:19 AM, "Hamidreza Vakilian" notifications@github.com
wrote:

Yes there's an expandOnlyOneCell property for the HVTableView which you
can set it to true. You will get only one cell expanded at the same
time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi notifications@github.com
wrote:


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
<
https://github.com/xerxes235/HVTableView/issues/19#issuecomment-184509578>
.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#19 (comment)
.

@xerxes235
Copy link
Collaborator

Create a UITapGestureRecognizer for the cell.contentView. By capturing the taps from the cell with a gesturerecognizer, the default didSelectRowAtIndexPath won't be called. You can push the new vc from that event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants