如何在Xcode 4中设置UITableViewCell标识符 [英] How to set UITableViewCell Identifier in Xcode 4
本文介绍了如何在Xcode 4中设置UITableViewCell标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Xcode 4中,我未能找到设置UITableViewCell标识符的位置,有人可以帮助我吗?
非常感谢。
In Xcode 4, I failed to find where to set UITableViewCell's Identifier, can anybody helps me? Thank you very much.
推荐答案
代码:
myTableViewCell.reuseIdentifier = @"CustomIdentifier";
在界面设计文档中(右键单击并查看图像以获得更大的图片):
In the interface design document (right-click and view image to get a bigger picture):
- 转到最左边的选项卡,项目导航器。
- 选择包含
.xib
的文件你的手机设计。 - 在
.xib
<中选择UITableViewCell
对象/ li>
- 确保显示最右边的视图,然后转到左起第4个选项卡,即属性检查器。
- 标有顶部框标识符是您输入标识符的位置。
- Go to the leftmost tab here, the Project navigator.
- Select the
.xib
file containing your cell design. - Select the
UITableViewCell
object within the.xib
- Make sure the rightmost "View" is showing and then go to the 4th-from-left tab, the Attributes inspector.
- The top box labelled "Identifier" is where you enter your identifier.
这篇关于如何在Xcode 4中设置UITableViewCell标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文