We are trying to control out pasteboard contents for our application. I have seen the way to create a custom text field and remove the ability that way, but I'm inquiring to find if there is a way to do it at the app level.
I was trying to utilize applicationWillResignActive, applicationDidenterBackground, and applicationWillTerminate. With those I figure I can clear the pasteboard contents and then have that data safe outside the app.
My initial attempt was to emulate something I had seen from a previous solution that may no longer work.
var pb = self.pasteboard()
pb.setValue("", forPasteboardType: UIPasteboardNameGeneral)
The error here being that the AppDelegate has no member pasteboard
Is there a way to make it work in app delegate, or am I relegated to changing all the fields in the app?