Chris Johnson
Chris Johnson

Reputation: 189

Custom Keyboard: How to Paste Image from pasteboard into messages.app MMS ios8

Custom Keyboard for iOS 8.

Created the keyboard Target in Swift. Runs fine on device.

I copy an image to the Pasteboard like this:

let image = UIImage(named: "myImage.png")
UIPasteboard.generalPasteboard().image = image;

I have verified that image is indeed copied into pasteboard by manual paste into the active text message.

But I want to programmatically paste that image into a user's active message in messages.app (in MMS).

Upvotes: 3

Views: 1594

Answers (1)

lchamp
lchamp

Reputation: 6612

I haven't tried to create my own keyboard at the moment.

Nevertheless I use two keyboard on my iPhone that includes images. Both of them ask the user to copy & paste the images into the message.

I might be wrong, but I guess this is an actual restriction.

Edit :

I can't find the documentation for that restriction. However, here is a capture of PopKey Keyboard FAQ :

PopKey Restriction FAQ

Upvotes: 2

Related Questions