I have a photo editing app where I want to provide a way for the user to edit photos from the pasteboard. For example the user might copy a photo from his websit开发者_开发问答e in Safari and then head over to my app and choose "Open from pasteboard". Kind of like Photoshop does it.
How can I get notified or check if there is a picture or graphic (probably a UIImage) in the pasteboard? And how could I obtain that image?
I needed one for a UIImage and this snippet helped me out.
You can always extract the image out using:
UIImage *image = [UIPasteboard generalPasteboard].image;
精彩评论