我正在使用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/