0

如何将 UIButton 添加到 UITableViewCell 中?我在情节提要中遇到了麻烦。

4

1 回答 1

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...!

于 2014-12-03T03:28:41.527 回答