2009-08-05 60 views

回答

3

UIPasteboard documentation on the changeCount属性详细说明将项目复制到粘贴板时会发生什么。

UIPasteboard发布名为UIPasteboardChangedNotification(用于添加和修改)和UIPasteboardRemovedNotification(用于删除)的通知。这些通知包括(在userInfo字典中)添加或删除的粘贴板项目的类型。

然后,您将要通过NSNotificationCenter:addObserver:selector:name:object:方法订阅UIPasteboardChangedNotification。

相关问题