I have an array of strings and I am populating a table view with the array data. I want the table view to display 1 in the first row, 2 in the second row, 3 in the third row. I have done this before but it is not working now. Every time I run the app, it displays the number of elements in the array in every row. What am I doing wrong?
func numPick() -> Int {
var num: Int = 0
for _ in myRoster! {
num+=1
}
return num
}