Copy&Paste within App

Hi All,


Is that possible to enable Copy &paste within App only, not expose to other app?


My request is that to enable copy and paste on UITextField, once app is put into background and user try to paste the seletion to email or other app, the selection should be disgard.


since our application is handling very sensitive information, user want to copy and paste within app only.


current this copy and paste feature is disabled.


Thanks,

Answered by KMT in 324049022

From the docs:

https://developer.apple.com/documentation/uikit/uipasteboard


The General Pasteboard and Named Pasteboards

The systemwide general pasteboard is identified with the

general
constant; you can use it for any type of data. Obtain the general pasteboard by using the
general
class method.


You can create named pasteboards with the class methods

init(name:create:)
and
withUniqueName()
for sharing data within your app and from your app to other apps that have the same Team ID.
Accepted Answer

From the docs:

https://developer.apple.com/documentation/uikit/uipasteboard


The General Pasteboard and Named Pasteboards

The systemwide general pasteboard is identified with the

general
constant; you can use it for any type of data. Obtain the general pasteboard by using the
general
class method.


You can create named pasteboards with the class methods

init(name:create:)
and
withUniqueName()
for sharing data within your app and from your app to other apps that have the same Team ID.
Copy&Paste within App
 
 
Q