I am sending NSString and UIImage using bluetooth. I decided to store both in a NSDictionary and then convert the dictionary to
NSString
UIImage
NSDictionary
NSDictionary -> NSData:
NSData *myData = [NSKeyedArchiver archivedDataWithRootObject:myDictionary];
NSData -> NSDictionary:
NSDictionary *myDictionary = (NSDictionary*) [NSKeyedUnarchiver unarchiveObjectWithData:myData];