I want to show the UILabel text "sunday" to uppercase "SUN" like that I want to show the UILabel text "sunday" to uppercase "SUN" like that xcode xcode

I want to show the UILabel text "sunday" to uppercase "SUN" like that


How about just this

NSString *uppercaseString = [strDay uppercaseString];cell.dayLabel.text = [uppercaseString substringToIndex:3];

Assuming it has a valid day


NSString *strDay = [dic objectForKey:@"day"]; NSString* split = [strDay substringToIndex:3];split=[split uppercaseString];

NSLOG (@"%@",split);

Cheers!


NSString *strDay = @"sunday";NSString *newStr = [strDay substringToIndex:3];NSString *uppercaseString = [newStr uppercaseString];