gpt4 book ai didi

iphone - 如何将 uitextfield 设置为斜体 Xcode 4.5

转载 作者:行者123 更新时间:2023-11-29 04:23:04 25 4
gpt4 key购买 nike

我有一个应用程序,用户在几个文本字段中输入信息,然后通过 nsstring 添加到 uitextview 中有人知道我如何将其中一个文本字段设置为斜体并保持其他文本字段正常

问候

编辑:

这是我的代码,我只想更改一次文本字段(例如textfbookpublisher):

NSString* combinedString = [NSString stringWithFormat:
@"%@,%@.'%@.'%@.%@,%@.",
textfbookpublisher.text,
textfbookauthor.text,
textfbooktitle.text,
textfbookplace.text,
nameofuni.text,
textfbookyear.text];



DissertationGen*bookg = [[DissertationGen alloc] init];
bookg.message = combinedString;
bookg.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:bookg animated:YES]

最佳答案

快速搜索会给您一个简单的答案。例如,this post .

只需将您想要的 UITextfield 的字体设置为 [UIFont italicSystemFontOfSize:]

关于iphone - 如何将 uitextfield 设置为斜体 Xcode 4.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12716972/

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