I just want to get the ASCII value of a single char string in Swift. This is how I\'m currently doing it:
var singleChar = \"a\" println(singleChar.unicodeSc
You can use NSString's characterAtIndex to accomplish this...
var singleCharString = "a" as NSString var singleCharValue = singleCharString.characterAtIndex(0) println("The value of \(singleCharString) is \(singleCharValue)") // The value of a is 97