0

我想在通知正文中打印,比如今天是简的生日

为此我使用如下逻辑

notification.alertBody = [NSString stringWithFormat:@"Today is %@'s Birthday",  [_combinedNameArray objectAtIndex:i]];

但在通知中它只显示名字是简而不显示今天是生日

请告诉我我做错了什么?

谢谢你

4

1 回答 1

0

尝试:

notification.alertBody = [NSString stringWithFormat:@"Today is %@\'s Birthday",  [_combinedNameArray objectAtIndex:i]];

(' 字符需要转义字符)

于 2013-03-21T05:34:52.447 回答