Comments (4)
So, you may remove the 2 lines from func didFinish() and if you want to capture that signature and assign it to a object you may create another function called from a button or anywhere else!
That didFinish() function is fired everytime the user "finish" the signature... if the user "touch" multiple times to sign, it will fire that function multiple times as well, that's may is the reason you have problems with it !
As you can see in the template, you may add a button like this:
`// Function for saving signature
@IBAction func saveSignature(_ sender: UIButton) {
// Getting the Signature Image from self.drawSignatureView using the method getSignature().
if let signatureImage = self.signatureView.getSignature(scale: 10) {
// Saving signatureImage from the line above to the Photo Roll.
// The first time you do this, the app asks for access to your pictures.
UIImageWriteToSavedPhotosAlbum(signatureImage, nil, nil, nil)
// Since the Signature is now saved to the Photo Roll, the View can be cleared anyway.
self.signatureView.clear()
}
}`
from ypdrawsignatureview.
Great answer.
Support and Issues
GitHub Issues are for filing bug reports and feature requests only. Use StackOverflow for support related questions and help.
from ypdrawsignatureview.
What's the problem you're facing ?
What exactly you're trying to accomplish ?
from ypdrawsignatureview.
I want to accomplish signature in UIview.
UIVIEW is embedded in UITableViewCell.
Currently singature can't be done properly(as per demo app it's working properly). I want to do as per demo in my current UIVIEW which is embedded in UITableViewCell.
from ypdrawsignatureview.
Related Issues (20)
- Add reference to YPDrawSignatureView from Delegate HOT 2
- Add signature view to tableview. HOT 3
- READ THIS FIRST BEFORE FILING ANY ISSUES!
- error:required code signature missing HOT 1
- Set image as signature HOT 8
- Lag in iPhone X HOT 1
- Apple Pencil support HOT 3
- Signature Authentication HOT 2
- I want to use camera and signature on screen can help how to do HOT 1
- old version on Cocoapods ! HOT 3
- Sometimes unable to get images HOT 1
- Detect handwritten signature HOT 3
- Could you add Eraser ? HOT 1
- performance issue when drawing 3 lines or more HOT 8
- Undo Redo and Eraser Support HOT 4
- saving the image within the App instead of photo gallery HOT 1
- Delegate property and YPSignatureDelegate are not public therefore not accessible to external code HOT 1
- Non-'@objc' method 'didFinish' does not satisfy requirement of '@objc' protocol 'YPSignatureDelegate' HOT 1
- Signature Vector svg format HOT 3
- Delegate isn't public HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ypdrawsignatureview.