iOS 9's [UIPasteboard generalPasteboard].string
will become null when the app is in the background running a background task or Today widget.
Can't we retrieve a clipboard text in the background any more?
iOS 9's [UIPasteboard generalPasteboard].string
will become null when the app is in the background running a background task or Today widget.
Can't we retrieve a clipboard text in the background any more?
Can you explain where do you launch generalPasteboard?.
This is what I would do:
In your app delegate's applicationdidBecomeActive method put in this code:
Next , in your current active view controller's init method subscribe to the notification.
PS Don't forgot to remove the observer when the view controller is removed: