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

1

2

3

4

5

6

7

8

9

10

#import <uikit/UIKit.h>

@interfaceDigitalSignatureView:UIViewController

{

CGPoint point;

UIImageView *image;

BOOLmouseSwiped;

intmouseMoved;

}

@property(strong,nonatomic)IBOutlet UIImageView *image;

@end

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: