How can I add a UIButton into a UITableViewCell? I am having trouble doing this in Storyboards.
Asked
Active
Viewed 1,211 times
0
-
That's two completely unrelated questions. Ask one question at a time, please. – matt Dec 03 '14 at 03:03
-
Thanks for your feedback. I believe I've updated my question to be a single question. By the way, I look forward to purchasing your upcoming book on Swift. – kurple Dec 03 '14 at 03:15
-
Actually for what you're doing my existing iOS 8 / Xcode 6 / Swift book would be more helpful! Your problem here is not Swift, it's your understanding of table view cells. – matt Dec 03 '14 at 03:25
1 Answers
0
The problem is that the only prototype cell style you can modify in Xcode is a Custom style. Make that setting in the cell's Attributes inspector and all will be well.
I made a little screencast that demonstrates: http://youtu.be/bN-nBOgFL00
Note that there are two different things about a cell that can be important here: its style (in the attributes inspector) and its class (in the identity inspector). They are totally different things and have no relation to one another (they are "orthogonal", as we like to say). Something you said earlier makes me think you may be confusing them with each other...!

matt
- 515,959
- 87
- 875
- 1,141