ios - How to copy NSDate to UIPasteboard? -
according docs must use
- (void)setvalue:(id)value forpasteboardtype:(nsstring *)pasteboardtype
but can't find uti nsdate. want copy raw nsdate formatted string representation.
is there way other copying string?
the apple documentation seem rather vague on how property list objects such nsdate objects referenced!
looking @ utcoretypes.h in mobilecoreservices framework wonder if use kuttypeitem since base type - indeed apple describe 'the base type things'? i'd perhaps try kuttypecontent mentions pasteboard data.
edit
it looks if others having same problem - see previous thread here , note answer using nspropertylistserialization whilst bit of pain, might allow date object plist.
Comments
Post a Comment