ios - Use of unresolved identifier countElements -
this question has answer here:
let newlength = countelements(textfield.text) + countelements(string) - range.length;
when i'm running app, shows error of unresolved identifier.
it appears attempting use swift 1.0 code in later version of swift. countelements
removed in ios 8.3 (with swift 1.2) -- need logged in see release notes
in swift 2.0, str.characters.count
Comments
Post a Comment