How to force UILabel to draw a text with upper case chars?

Dmitry picture Dmitry · Sep 15, 2013 · Viewed 32.4k times · Source

How to force UILabel to draw a text with upper case chars?

Answer

nevan king picture nevan king · Sep 15, 2013

Objective-C

NSString *text = @"Hello";
[myLabel setText:[text uppercaseString]];

Swift 3 & 4

let text = "Hello"
myLabel.text = text.uppercased()