开发者

Problem with \t \n with NSString

I have a plist where I place my strings, with type string. When I access the strings in the plist, it doesnt interpret \n and \t.

So when I display these strings it will display \tTitle an开发者_如何学JAVAd not Title with tab indention.

But if I use

#define str1 @"\tTitle" 

and just place it in header files, it works.

Please help.


Maybe something is wrong with the way you are accessing the string. Take a look here: Property list programming guide

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜