Dealing with iOS clipboard

I want to make Drop It even better, medical version 1.0 was a “just get it done and in the store” kind of deal. Now it’s time to make it better. Step 1, troche make it so you don’t have to paste the url in there if you’ve already copied it. I know, it’s not that big a deal, but if an app can remove one step from the process that you’re going to do anyway, then the app makes your life just a little bit easier, and that provides a positive user experience.

I ended up using this page on MobileOrchard to figure out how to grab the contents of the clipboard (or pasteboard, in iOS terms).

UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];

And then to get the contents of the latest copied string:

NSString *string = pasteboard.string;