I am experiencing some strange behaviour.
I have the following code in my app that is supposed to pre-fill a long link in a clipboard so the user only needs to paste.
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = @"Hello world";
However, instead of the text from the code going into the clipboard, the last thing present in the clipboard on my mac in Xcode is appearing on the phone.
I am testing on a real phsical SE Phone, not the simulator!!
When I paste into an SLComposer on phone, I would expect to see "Hello world".
Instead, I seeing the last code that I cut and pasted in Xcode only on my physical phone:
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = link;
What gives? Wondering if anyone else has experienced this?