e4stwood e4stwood - 20 days ago 7
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?


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.