ofxXmlSettings related string conversions

Hello,

I am using ofxXmlSettings to save and load an array of strings.

I am then trying to set the strings to be UIButton titles.

  
[load0name setTitle:savedstring[0] forState:UIControlStateNormal];  

I get the error: No viable conversion from ‘string’ (aka ‘basic_string’) to ‘NSString *’

How do I do this conversion?

Thanks

try the conversion function: ofxStringToNSString()

  
  
[load0name setTitle:ofxStringToNSString(savedstring[0]) forState:UIControlStateNormal];