r/iOSProgramming • • Oct 11 '15

Question Add images from a custom keyboard

I've read a lot online, and it seems the consensus, at least as of a few months ago, is that it's not possible to insert images directly from a keyboard. The best workaround I found is to copy the image to the clipboard and have the user paste it into the text field. Has anyone found a way around this? It seems very constraining to manage things like this.

0 Upvotes

2 comments sorted by

4

u/brendan09 Oct 11 '15

That's the only way to do it. The API was written to work for keyboards, not mini image pickers.

Keep in mind, 99.9% of apps and textfields won't accept pictures. The ones that do will only do it via Copy / Paste or from a photo picker...it's not actually 'typing' a picture. The app allowing you to attach one is handling it 100% itself, and every app is likely to handle it differently.

0

u/[deleted] Oct 11 '15

Yeah... I think I'm going to scrap the project. Not a very attractive way to have a keyboard function and I've got other things work on. Thanks.