Questions tagged [uipasteboard]

UIPasteboard is used to store different types of data into iOS clipboard. We can store data of NSString, NSArray, UIImage, NSUrl, NSData into it and can retrieve the data into that particular format too.

263 questions
0
votes
1 answer

about UIPasteboard clip

I want to implement a clipboard app using UIPasteboard, which can copy plain text and also rich format , web content in to the pasteboard , and then display on my TextView or WebView. how can i do that? i have following code and it can get the plain…
zolibra
  • 532
  • 6
  • 16
0
votes
1 answer

Pasting Gif images into Facebook copied from App

I have an app which plays GIF images (animations). I can copy it using UIPasteBoard and paste it into iPhone's native text app or attach it mail. How can i paste it into Facebook app's text message area or status area? Is it achievable from…
Mann
  • 5,477
  • 6
  • 45
  • 57
0
votes
3 answers

Programmatically pasting into an iPhone UITextView

I have an iPhone app with a UITextView. I'd like to be able to paste the clipboard contents into it without showing the UIMenuController. I tried calling the paste: method on the UITextView, and on the first responder, but neither of those things…
Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
0
votes
1 answer

UIPasteboard Pasteboard App iOS iPhone

I am looking forward developing a pasteboard app for the iPhone. The question is: how can I realize when something has been copied? I know I can access the UIPasteboard generalPasteboard properties. But when do I need to update the (example)…
Lluís
  • 578
  • 1
  • 5
  • 10
0
votes
1 answer

iOS 6: UserInfo returns nil for Pasteboard change Notification

Here's the Notification Observer for the Pasteboard change event, I need it to handle the copied selected text [[NSNotificationCenter defaultCenter] addObserver:self …
0
votes
1 answer

UIPasteboard: image saving issue

I'v thought that dealing with UIPasteboard is easy but it turned out to be a time-consuming issue... I want to store an UIImage in UIPasteboard and then paste this image in iMessage, WhatsApp, Gmail... and others. That's my method where I use…
iWheelBuy
  • 5,470
  • 2
  • 37
  • 71
0
votes
2 answers

How do you copy a string onto the clipboard (Pasteboard) in iOS?

How do you copy a string onto the clipboard in iOS? I searched for "clipboard" in the docs, and got no hits.
c roald
  • 1,984
  • 1
  • 20
  • 30
0
votes
3 answers

nsnumber into uipasteboard

I'd like to copy a float into the pasteboard, but the important thing is the value, as I want to paste it later in numbers, as a number. Tried with : [pasteboard setValue:SomeNSNumberWhereIStoredTheFloat…
g10k
  • 53
  • 5
0
votes
1 answer

Copy Image from pdf or uiwebview in IOS?

how can i get image from UIPasteboard after the user click copy actually i can get Nsdata from UIPasteboard but i think it needs specific coding to be assigned to uiimageview how can i do this ? thanks for help.
0
votes
0 answers

how to paste the Image in MessageComposer

I had copied the image as data to UIPasteboard, i need this image to be automatically pasted to Message Compose without the user interaction. how to do it ? NSData *imageData = UIImagePNGRepresentation(image1); UIPasteboard *pasteboard =…
user1485749
  • 81
  • 2
  • 8
0
votes
2 answers

UIPasteboard security

I need to store information on application that always need to be read when open application. But I don't want user copy/dump/or edit it. So the question is : "Is UIPasteboard can solve this problem?" is it security? and if not, what else is…
majorl3oat
  • 4,327
  • 1
  • 18
  • 21
0
votes
1 answer

iPhone iOS how to paste image into a UIImageView with long press

I got a general idea that I can use a UIPasteBoard to control the copy/paste contents. I would like to allow the user to long press on an image and overwrite that image with the paste board contents. What concerns me is how to do this in a…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
0
votes
1 answer

How do I know the MIME type for image data in UIPasteboard?

I want to import an image from UIPasteboard. The dataForPasteboardType: method gives me NSData of the image, but I have no idea whether that’s a GIF, PNG, JPEG or whatever. I can create an UIImage from the data without knowing the precise image…
zoul
  • 102,279
  • 44
  • 260
  • 354
0
votes
2 answers

UIPasteBoard Changes my Image Orientation

I am Copying the array of Images in UIPasteBoard and When I try to Paste the images in mail the Image orientation is changing. This is How I am Copying the Images. UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard]; pasteBoard.images =…
Aravindhan
  • 15,608
  • 10
  • 56
  • 71
-1
votes
1 answer

UIPasteboard is not working for PDF files

I have two apps and I'm trying to pass the PDF file from one to another. We will consider the two apps as App1 and App2. I'm opening App2 from App1. So I have configured URLTypes in the info plist of App2. On click of button 'Open App2' in the App1,…
1 2 3
17
18