Hi I am trying to convert a standard std::string into an NSString but I\'m not having much luck.
std::string
NSString
I can convert successfully from an N
N
Apple now has a new way they want you to do this conversion. In XCode7, I used the Edit > Convert > To Modern Objective C Syntax... option to find this out. It uses a shorthand @ symbol.
std::string sCPPString = "Hello World!"; NSString *sAppleString = @(sCPPString.c_str());