gpt4 book ai didi

iphone - 是否可以在 nsstring 中包含引号?

转载 作者:IT老高 更新时间:2023-10-28 11:43:16 24 4
gpt4 key购买 nike

我有一个显示英寸的标签。我想用英寸符号 (") 或引号显示数字。我可以用 nsstring 来执行此操作吗?谢谢!

最佳答案

当然,你只需要转义引号。

NSString *someString = @"This is a quotation mark: \"";
NSLog(@"%@", someString );

输出:

This is a quotation mark: "

关于iphone - 是否可以在 nsstring 中包含引号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1934886/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com