using NSString + stringWithContentsOfFile:usedEncoding:error:

前端 未结 1 773
礼貌的吻别
礼貌的吻别 2021-02-19 19:49

I\'ve got problem with use + stringWithContentsOfFile:usedEncoding:error:

My problem in usedEncoding:(NSStringEncoding *)enc I don\'t know how can i set pointer to encod

相关标签:
1条回答
  • 2021-02-19 20:05
    NSStringEncoding encoding;
    NSError* error;
    NSString* myString = [NSString stringWithContentsOfFile:myFilePath usedEncoding:&encoding error:&error];
    
    0 讨论(0)
提交回复
热议问题