gpt4 book ai didi

swift - 如何从 NSLog() 获取 "stringWithFormat"到 Swift 中的变量?

转载 作者:可可西里 更新时间:2023-11-01 00:36:32 25 4
gpt4 key购买 nike

<分区>

如何在 Swift 中从 NSLog() 获取 stringWithFormat

例如控制台输出是 2016-05-24 18:33:31.543 MyPlayground[15578:143357] This is a test! 那么如何得到 2016-05- 24 18:33:31.5432016-05-24 18:33:31.543 MyPlayground[15578:143357] 并将其保存到变量,而不打印到控制台?

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