开发者

Problem with \t \n with NSString

开发者 https://www.devze.com 2023-01-10 20:23 出处:网络
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.

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

精彩评论

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