UITextField 'Cut' does not fill pasteboard

189 Views Asked by At

I have a UITextField with no custom copy-paste-... code at all. When I Cut and then Paste it back, I see some previous pasteboard content appear.

When I Cut from the text field and then Paste in let's say iOS Notes, I also see the previous pasteboard content.

When I Cut text from Notes and Paste it back, I see the Cut text. This is the expected behaviour, so something weird seems to be going on in my app.

How can I make sure that Cut fills the pasteboard?

When I Copy and then Paste, all works as expected.

Apple documentation clearly confirms that Cut should place the selected data on the pasteboard.

0

There are 0 best solutions below