Skip to content

Instantly share code, notes, and snippets.

@noppefoxwolf
Created October 6, 2014 06:04
Show Gist options
  • Save noppefoxwolf/3da61790e9b270ca27e2 to your computer and use it in GitHub Desktop.
Save noppefoxwolf/3da61790e9b270ca27e2 to your computer and use it in GitHub Desktop.
iOS8AppExtentionKeyboardで全ての文字を削除する ref: http://qiita.com/noppefoxwolf/items/93d23e142d1cf1255c1f
for (int i=0; i<self.textDocumentProxy.documentContextBeforeInput.length+1; i++) {
[self.textDocumentProxy deleteBackward];
}
while ([self.textDocumentProxy hasText]) {
[self.textDocumentProxy deleteBackward];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment