swift - UnsafeMutablePointer.null() does not work? (Is unavailable?) -


in swift, null, used unsafemutablepointer.null() did not work. xcode says unavailable , should use nil literal instead gives me error message. have fix?

thanks.

i stumbled upon post while trying answer question myself, , found worked me

let nullptr = unsafemutablepointer<int>(nil) // nil null pointer 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -