Digital Signature Application In iPhone

Digital Signature Application in iPhone

In this application we will see how to DigitalSignature draw in iPhone. So let see how it will worked.

Step 1: Open the Xcode, Create a new project using Empty Application . Give the application “DigitalSignature”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: We need to create a ViewController class for this application. So select the project New file -> UIViewControllersubclass -> Next -> Give the class name DigitalSignatureView.

Step 4: Open the AppDelegate.h file and make the following changes:




Step 5: Open the AppDelegate.m file and make the following changes:




Step 6: In the DigitalSignatureView.h file, make the following changes:




Step 7: Double click the DigitalSignatureView.xib file and open it to the interface builder. Select the view from interface builder and bring up Attribute Inspector. Change the background color into black. Drag the imageView from the library and
place it to the view. Connect File’s Owner icon to the View and select image. Now save the .xib file , close it and go back to the Xcode.

Step 8: Open the DigitalSignatureView.m file, make the following changes:




Step 9: Now Compile and run the application on the Simulator.

Comments 3

Leave a Reply

Your email address will not be published. Required fields are marked *