Questions tagged [textdocumentproxy]

12 questions
5
votes
1 answer

Custom Keyboard extension with UITextField

I have custom keyboard extension with UITextField in it. I am able switch to UITextField's text input, but cannot switch back to self.textDocumentProxy. Does anybody know, how to do something like [self.textDocumentProxy becomeFirstResponder]? (By…
landonandrey
  • 1,271
  • 1
  • 16
  • 26
5
votes
2 answers

iOS: Custom keyboard: I want to send images to the textDocumentProxy(Input controls)

I am implementing custom keyboard with only images and wanted to send images to textDocumentProxy/input controls like textview on click of image but not get over it. so far I am able to send text/string to input controls but not images. Is it…
Ajay Gabani
  • 1,168
  • 22
  • 38
4
votes
0 answers

iOS 8 Keyboard Extension: UIInputViewController textDocumentProxy connection invalidated

On an iOS 8 keyboard extension, I have added a UITextField so the user is enabled to search for emoji or other elements inside the keyboard. In a case where a user is typing, for instance in the Notes.app, the user taps the search field on the…
3
votes
0 answers

Is it possible to prevent textDocumentProxy from 'splitting' emoji?

I'm currently working on a third party keyboard for iOS and ran into a small annoyance with textDocumentProxy which I hoped y'all might be able to help me with. So I have the two following variables defined which I am printing to the console…
cyril
  • 3,020
  • 6
  • 36
  • 61
1
vote
1 answer

IOS get notified when UI updates.

I have a custom keyboard extension. This function is called when the delete key is pressed: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), { for _ in 1..<50 { …
Foobar
  • 7,458
  • 16
  • 81
  • 161
1
vote
0 answers

EXC_BAD_ACCESS when using dispatch_async. How to prevent object from being released?

I have the following function: func delete() { if (deleteCounter == 0) { print("Deletion Start") deleteCounter = 1 // Execute async delete task …
Foobar
  • 7,458
  • 16
  • 81
  • 161
1
vote
1 answer

Use custom InputViewController in app

My current assignment is an iOS Keyboard Extension. Now, to pass App Store Review, the containing app has to provide some "real" content. I thought about letting the user test the keyboard before enabling it in the Settings. So my storyboard looks…
s3lph
  • 4,575
  • 4
  • 21
  • 38
1
vote
3 answers

iOS 8 textDocumentProxy - able to delete more than one space?

I would like to delete multiple spaces from self.textDocumentProxy when working with my extension's KeyboardViewController, and was wondering if there is a Apple-supported method that specifically performs this action? So far, I have been using a…
daspianist
  • 5,336
  • 8
  • 50
  • 94
0
votes
0 answers

Auto Enter feature in Custom Keyboard Extension iOS Swift in 3rd party host app

I've implemented Custom Keyboard Extension in my app. When I use this with my other 3rd party host app, and connected to hardware barcode scanner, I want it to do auto enter when there is barcode read. I able do this with the help here -> auto-send,…
Azrin
  • 21
  • 1
  • 2
0
votes
1 answer

how to use loop to deleteBackward()

I want to delete 5 characters in a string, so I plan to use a loop to do that. but actually code not report any error, but still, I can only delete one character var i = Int() repeat { proxy.deleteBackward(); i = i+1 } while i<5
0
votes
1 answer

Memory being allocated and not released each time call very simple method

I have the following method that is called when the delete button is pressed in an IOS keyboard app extension: func delete() { dispatch_async(dispatch_get_main_queue(), { for _ in 1..<50 { …
Foobar
  • 7,458
  • 16
  • 81
  • 161
0
votes
2 answers

How to delete a letter before last letter in textDocumentProxy in iOS?

We can use deleteBackward in TextDocumentProxy to delete a last letter. Now i need to delete a letter of last letter. Eg. Apple , i want to delete l letter before e. How can i do it?
Fire Fist
  • 7,032
  • 12
  • 63
  • 109