gpt4 book ai didi

iphone - 在UITextView中以编程方式编写文本

转载 作者:行者123 更新时间:2023-12-01 17:43:24 24 4
gpt4 key购买 nike

我想在UITextView中写入以下文本,然后如何在UITextView中写入

Provides freeze protection to -45°F to ensure a clean, clear windshield

>Concentrated formula
>Provides freeze protection to -45°F
>Removes road film and bug splatter
>Use year-round
>Choose the freeze protection you need
>Contains a special bittering agent
>Harmless to car finishes when used as directed

我想要UITextView中的类似结构。可能吗?

最佳答案

只需按照您的要求设置字符串格式即可:

yourTextView.text = [NSString stringWithFormat:@" Provides freeze protection to -45°F to ensure a clean, clear windshield\n    >Concentrated formula\n    >Provides freeze protection to -45°F\n    >Removes road film and bug splatter\n    >Use year-round\n    >Choose the freeze protection you need\n    >Contains a special bittering agent\n    >Harmless to car finishes when used as directed"];

关于iphone - 在UITextView中以编程方式编写文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12950251/

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