NSString *strDay = [dic objectForKey:@"day"];
NSString *uppercaseString = [strDay uppercaseString];
cell.dayLabel.text = uppercaseString;
Is that the correct method to get that? But I get only uppercase. I want "sunday" to be shown in view like "SUN".
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With