Convert a string to Uppercase

 Problem

I want to convert a string to uppercase.



 Recipe


// String literal
var a = "Hello World!"

// Uppercase the string
a = a.uppercaseString
print(a)
				

Heard the news?

The Swift Cookbook for Swift 3 is at last here! For iBooks, Kindle and Paperback.
Hurry up - and Check it out! ;-)

 

 Playground