I am trying to convert an NSString to a byte array. Then I need to save the byte array in a dictionary. So I do
[dict setObject:[plainString UTF8String] forKey: key];
But I get the compile error
Implicit conversion of a non-Objective-C pointer type 'const char *' to ‘id’ is disallowed with ARC