I have a table view in which i want to put row names from my array's object.
I have declared an array
var myArray = [1,2,3,4,5,6,7]
in my tableView how can I put value from this array.I didn't find ObjectAtIndex method, so I am doing this
myLabel.text= String(format: "%@",array [ indexPath.row])
let myArray = [1,2,3,4,5,6,7]; let text = "\(myArray[indexPath.row])". You should read The Swift Programming Guide: Strings and Characters, which covers String Interpolation.