title: How do I convert a UIImage to NSData or CFDataRef?
body: <p>How do I convert a <code>UIImage</code> to <code>NSData</code> or <code>CFDataRef</code>? I need to pass a <code>CFDataRef</code> to <code>ABPersonSetImageData</code>.</p>