ios - Array does not perform a command in swift -
this question has answer here:
- how find index of list item in swift? 11 answers
array not perform command in swift
i show simple example
var array = ["x", "y", "z"] var index = array.indexof("y")
i error '[string]' not have member named 'indexof'
i saw this question doesn't me.
i imported
import uikit import foundation import avfoundation import coreaudio import mediaplayer import avkit
indexof available in swift 2.0
Comments
Post a Comment