Created
October 6, 2014 06:04
-
-
Save noppefoxwolf/3da61790e9b270ca27e2 to your computer and use it in GitHub Desktop.
iOS8AppExtentionKeyboardで全ての文字を削除する ref: http://qiita.com/noppefoxwolf/items/93d23e142d1cf1255c1f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (int i=0; i<self.textDocumentProxy.documentContextBeforeInput.length+1; i++) { | |
[self.textDocumentProxy deleteBackward]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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