如何在Xcode 4中设置UITableViewCell标识符 [英] How to set UITableViewCell Identifier in Xcode 4

查看:126
本文介绍了如何在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):


  1. 转到最左边的选项卡,项目导航器。

  2. 选择包含 .xib 的文件你的手机设计。

  3. .xib <中选择 UITableViewCell 对象/ li>
  4. 确保显示最右边的视图,然后转到左起第4个选项卡,即属性检查器。

  5. 标有顶部框标识符是您输入标识符的位置。

  1. Go to the leftmost tab here, the Project navigator.
  2. Select the .xib file containing your cell design.
  3. Select the UITableViewCell object within the .xib
  4. Make sure the rightmost "View" is showing and then go to the 4th-from-left tab, the Attributes inspector.
  5. The top box labelled "Identifier" is where you enter your identifier.

这篇关于如何在Xcode 4中设置UITableViewCell标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆