I've got a table view with X rows and i want that if I tap one of the rows it displays a view controller with a different value each. I know that i have to use prepareForSegue but i don't know how. I'll make an example: There's the table view with 4 rows. I tap the first row and it opens a view controller with a label that shows "1". I tap the second row and it opens a view controller with a label that shows "2". And so on. I don't want to create milions of view controllers, i'd like to have only one of them that changes every time.
You'll make me a big favor. Thanks