Skip to content

Instantly share code, notes, and snippets.

@rcoh
Last active December 20, 2015 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcoh/6064175 to your computer and use it in GitHub Desktop.
Save rcoh/6064175 to your computer and use it in GitHub Desktop.
Enabling a View
[self.view INKEnableWithUTI:myFile.uti dynamicBlob:^INKBlob *{
INKBlob *blob = [INKBlob blobFromData:[myFile getData]];
blob.uti = myFile.uti;
blob.filename = myFile.fileName;
return blob;
} returnBlock:^(INKBlob *blob, INKAction *action, NSError *error) {
if ([action.type isEqualToString: INKActionType_Return]) {
// Return save action. Save back the blob
} else {
// Return cancel action
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment