drumnkyle/KSCardView

Card Content View Becomes Unresponsive

Closed this issue · 3 comments

I'm not sure if this is an issue on your end or my end, but I thought I might discuss it with you.

I have UITableViews in three cards, one tableview per card. When I'm switching between cards, the tableviews respond just fine after switching to a new view. However, if the card rubberbands back to itself, the tableviews stop responding. I haven't exactly looked into this extensively on my own, but I was wondering if you have any ideas on what's causing this and a possible fix?

That is a very interesting dilemma. I actually specifically decided when I was designing it that I wouldn't use anything with a scroll view (i.e. UIScrollView or UITableView), because it may be difficult to tell whether you were dragging the card or scrolling the view. But, I guess if you resize the table view so that there is some space left for the user to drag a piece of the card that it may work. However, it is still only dragging the card.

I am looking into this and will let you know if I find a solution. Do you have any of the card view itself (not with the table view) exposed? If not, I'm not sure how you would be able to drag the card vs scroll the table view.

I figured out how to fix it and discovered another small bug in the process. Check out my changes if you'd like to see how it was fixed. Feel free to let me know what kind of app you're making if you'd like. Just curious. Glad to see you're using it and I hope that it works well for you.

I do indeed have a small bit of the card exposed on each side of the table view. I've taken a look at the changes you made and they are almost line for line exactly the changes I began to implement myself last night! Great minds think alike, I suppose :P

If you would like to see what I'm using your control for, hit me up at the email on my github profile and I'll tell you. I think you might like what's cooking!