ios - Why is the array out of bounds if there are enough values? -


i trying use table view crash error fatal error: array index out of range print count of each array , follow posted in code. why crashing? how work?

var feedimage = [uiimage]() //4 values var nameuser = [string]() // 8 values var descrip: [[string]] = [] // 8 values   func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell {     let cell: feedcell = feedtable.dequeuereusablecellwithidentifier("feedcell") as! feedcell     cell.name.text = nameuser[indexpath.row]     cell.postedimage.image = feedimage[indexpath.row]     for(var = 0; < feedimage.count; i++){          cell.desc.text = descrip[i][indexpath.row] //crash error      }      return cell } 


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -