I am looking forward developing a pasteboard app for the iPhone.
The question is: how can I realize when something has been copied? I know I can access the UIPasteboard generalPasteboard properties.
But when do I need to update the (example) UITableView that show the contents? Is there a notification sent to the NSNotificationCenter that I could observe? Anything else? Reload the data when viewDidAppear?
You can register to the
UIPasteboardChangedNotificationnotification (documentation). This will be called each time the contents of the pasteboard changes.