ios - Array does not perform a command in swift -


this question has answer here:

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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -