The number of times the pasteboard’s contents have changed.
- iOS 3.0+
- Mac Catalyst 13.0+
Whenever the contents of a pasteboard changes—specifically, when pasteboard items are added, modified, or removed—
UIPasteboard increments the value of this property. After it increments the change count, UIPasteboard posts the notifications named
UIPasteboard (for additions and modifications) and
UIPasteboard (for removals). These notifications include (in the
user dictionary) the types of the pasteboard items added or removed. Because
UIPasteboard waits until the end of the current event loop before incrementing the change count, notifications can be batched. The class also updates the change count when an app reactivates and another app has changed the pasteboard contents. When users restart a device, the change count is reset to zero.