objective c - Cast with "char", instead of directly NSString? -
i have code
self.text = [nsstring stringwithutf8string:(char *)sqlite_column_text(init_statement, 0)];
i'm wondering why use stringwithutf8string:
, char *
stuff, instead of directly using nsstring
here?
presumably sqlite library not returning nsstring
s, being c library knows nothing of objective c.
Comments
Post a Comment