I copy and pasted the following line of code into a .m file:
uiipc.mediaTypes = @[(NSString *)kuTTypeImage];
But even though I had linked MobileCoreServices.framework and did #import <MobileCoreServices/MobileCoreServices.h>
I can't get rid of this error:
Use of undeclared identifier 'kuTTypeImage'
Background
I copied this piece of code from http://www.stanford.edu/class/cs193p/cgi-bin/drupal/system/files/lectures/Lecture%2017_0.pdf to add picture taking capabilities to my iPhone app.
From Symbol not found: kUTTypeImage I figured out I had to link MobileCoreServices.framework. I indepedently figured out I had to #import <MobileCoreServices/MobileCoreServices.h>
. I think I've done everything by the book, but why am I still getting this error?