Why my message become some monster char?

Posted by Tattat on Stack Overflow See other posts from Stack Overflow or by Tattat
Published on 2010-03-21T15:01:35Z Indexed on 2010/03/21 15:11 UTC
Read the original article Hit count: 119

Filed under:
|
    NSString *msg = [[NSString alloc]initWithFormat:@"Hello %s, What do you do", (self.isUser ? @"User" : @"Guest")];
    NSLog(msg);

When I print the msg, it show that this is "†¶·»,", instead of user/guest, what's happen?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about string