Giter Site home page Giter Site logo

Comments (4)

saormart avatar saormart commented on June 8, 2024 1

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.

GJNilsen avatar GJNilsen commented on June 8, 2024 1

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.

saormart avatar saormart commented on June 8, 2024

What's the problem you're facing ?
What exactly you're trying to accomplish ?

from ypdrawsignatureview.

Ans67 avatar Ans67 commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.