Signature options
Text stamp
Since version 3.6.0, you can add a short text to the visible signature, drawn in its lower-right corner. Add it once the signature has been acquired:
- Swift
- Objective-C
mobbSignView.onSignatureAcquised = {
mobbSignView.addText(toSign: "Signed by Jane Doe")
}
[self.mobbSignView setOnSignatureAcquised:^{
[self.mobbSignView addTextToSign:@"Signed by Jane Doe"];
}];
Image stamp
To draw an image inside the signature instead, such as a company stamp, set stampImage:
- Swift
- Objective-C
mobbSignView.onSignatureAcquised = {
mobbSignView.stampImage = UIImage(named: "company-stamp")
}
[self.mobbSignView setOnSignatureAcquised:^{
[self.mobbSignView setStampImage:[UIImage imageNamed:@"company-stamp"]];
}];
Custom fields
Add your own key-value pairs to the electronic signature:
| Method | Where the field is written |
|---|---|
- (void)addSignedCustomField:(NSString *)key value:(NSString *)value; | In the signed information of the signature: it is protected against changes. |
- (void)addCustomField:(NSString *)key value:(NSString *)value; | In the non-visible part of the signature field, outside the signed information. |
[self.mobbSignView addSignedCustomField:@"contractId" value:@"C-2026-00042"];
Document editing
| Method | Description |
|---|---|
- (NSInteger)addNewPage; | Adds a page at the end of the document. |
- (BOOL)addImageToPage:(MobbSignImageConfiguration *)imageConfiguration; | Adds an image to a page. |
Make these changes before the document is signed, so that every signature covers the final content.