Search code examples
iosios9today-extensionuipasteboard

UIPasteboard string returning null from Today extension


It seems that in iOS 9/Xcode 7 beta 5, I am unable to access

[[UIPasteboard generalPasteboard] string];  

from my Today widget extension as every time no matter the contents, it returns (NULL). I looked through the release notes and I did not see anything regarding this.

Any ideas?


Solution

  • It seems to be an undocumented bug with iOS 9 beta 5, in particular, the iOS runtime. Same code works with normal app on iOS 9 beta 5, and today widget in iOS 8.x devices.