Saturday 15 June 2013

Swift instr or strpos Equivalent -



Swift instr or strpos Equivalent -

i've searched , searched can't see find instr or strpos equivalent in swift is. need see if string contains string. how can in swift?

use rangofstring():

if string.rangeofstring("mysubstring") != nil { println("string contains substring") }

swift strpos

No comments:

Post a Comment