Skip to content

Instantly share code, notes, and snippets.

@geykel
Created March 24, 2016 18:13
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/2fd2a18d8405810fbaa6 to your computer and use it in GitHub Desktop.
Save geykel/2fd2a18d8405810fbaa6 to your computer and use it in GitHub Desktop.
let cadena: NSString = "Hola, soy de tipo NSString."
let localizacion = NSLocale.currentLocale()
let selector = #selector(NSString.lowercaseStringWithLocale(_:))
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