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

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -