2 ms·
A couple missing useful things to know how to do are split, join, and trim, which I have on a page: http://www.h4labs.com/dev/ios/swift_cookbook.html?topic=str
by melling 11y ago
A couple missing useful things to know how to do are split, join, and trim, which I have on a page:
http://www.h4labs.com/dev/ios/swift_cookbook.html?topic=strings http://www.h4labs.com/dev/ios/swift_cookbook.html?topic=stri...
Something that's not on either page but if you use SQLite, it's important to be able to convert a C string:
let str:String = String.fromCString(UnsafePointer<CChar>(sqlite3_column_text(statement, columnCtr)))!
Make sure you don't have NULL columns.