Skip to content

Instantly share code, notes, and snippets.

@geykel
Created March 24, 2016 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geykel/18ff20a9f08733404356 to your computer and use it in GitHub Desktop.
Save geykel/18ff20a9f08733404356 to your computer and use it in GitHub Desktop.
// 1
let cadena: NSString = "Hola, soy de tipo NSString."
let localizacion = NSLocale.currentLocale()
// 2
let selector = Selector("lowercaseStringWithLocale:")
// 3
if let resultado = cadena.performSelector(selector, withObject: localizacion) {
print(resultado.takeUnretainedValue())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment