Instance Property

changeCount

The number of times the pasteboard’s contents have changed.

Declaration

@property(readonly, nonatomic) NSInteger changeCount;

Discussion

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 UIPasteboardChangedNotification (for additions and modifications) and UIPasteboardRemovedNotification (for removals). These notifications include (in the userInfo 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.

See Also

Getting and Setting Pasteboard Attributes

name

The name of the pasteboard.

setPersistent:

A Boolean value that indicates whether the pasteboard is persistent.

Deprecated