gpt4 book ai didi

iphone - 将表格 View 中的文字变成大写?

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

我正在使用RSS提要,需要将标题和副标题转换为大写字母,有没有简便的方法?

谢谢。

最佳答案

在cellForRow AtIndexPath中

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];

NSString *string1 = @"The quicK brOwn fox jumpeD";

cell.textLabel.text = [string1 uppercaseString];

....

关于iphone - 将表格 View 中的文字变成大写?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13551887/

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