e4stwood e4stwood - 1 year ago 111
Swift Question

YPDrawSignatureView - Table scrolling when drawing signature

So I want a signature view within a table cell. Obviously whenever somebody tries to draw in the cell, the table scrolls.

How would I stop the scrolling but ONLY when the user is writing in the signature box?

Answer Source

I would solve this with a button covering the cell, and when the user taps it, the cell displays the YPDrawSignatureView. Just before the signature view is shown, disable the scrolling:

tableView.scrollEnabled = false

Later when you save the signature, enable scrolling again by setting scrollEnabled to true.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download