Basic question on connecting table view to prototype cells
Basic question on connecting table view to prototype cells
- Subject: Basic question on connecting table view to prototype cells
- From: Alex Hall <email@hidden>
- Date: Sat, 10 Oct 2015 00:36:35 -0400
Hello list,
I'm playing with tables on iOS, because they're central to many apps but I've never really used them. I have a UITableView displaying rows of data, which is good, but tapping on a row does nothing, which is the problem. I've made a segue from the "detail" view to the table cell, and prepareForSegue() is implemented in the table view's view controller. Yet, the detail view never shows up in the app.
I'm pretty sure my problem is that my cell isn't officially part of my table. The table didn't come with any cells, so I dragged one over. Tutorials say that I should control-drag from the cell to the table, but that doesn't do anything with VoiceOver, and I can't see why I'd have to do it anyway. The cell is already nested in the table; can't Xcode work out the relationship from there? Of course, this may already be all set, and the problem is elsewhere.
I guess my question for the list is: how do I make sure my cell is connected to my table so that it, not one generated in the data source, is the one used? If my cell isn't used, the segue won't be attached and nothing would happen when a cell were tapped, which is what I'm seeing. If nothing else, I'd like to rule this out as a problem, so I can be sure the Xcode side of things is correct before I pester Cocoa-dev. Thanks in advance.
--
Have a great day,
Alex Hall
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden