2013-03-21 64 views
0

我想通知的身体像今天打印是简的生日NSNotification警报身体问题

的,我现在用的逻辑类似下面

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

但在通知那只能说明这是简而得名没有表现出今天是生日

PLZ告诉我什么,我做错了什么?

谢谢

+0

你这个代码看起来很完美。 – 2013-03-21 05:39:57

+0

你能在这个今天显示更多代码 – 2013-03-21 05:46:26

+0

今天是%@ \的生日,它工作完美:)是它的工作,但你认为如果是的话,如果是的话,还是有什么错误然后PLZ建议:) – user2189388 2013-03-21 05:48:56

回答

0

尝试:

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

(”字符需要转义字符)

+0

好吧,让我试试好友 – user2189388 2013-03-21 05:35:40

+0

不,这不是这种情况 – 2013-03-21 05:39:13

+0

为什么撇号需要进行转义? – rmaddy 2013-03-21 05:43:40