Rounded rectangle with gradient background on the iPhone, NSTokenFieldCell style.
This code has not (yet?) been made very general, but should be easy to adapt.
You need to include the QuartzCore.framework and the uicolor-utilities category by Ars Technica.
I've since made a Core Graphics version.