IBOutlet未连接到uitableviewcell

时间:2011-10-28 13:03:57

标签: ios iphone objective-c uitableview ios4

我有UITableView,我的界面中也有UITableViewCell。现在我尝试在我的班级中为UITableViewCell创建一个插座,然后按照任何人的正常方式将其连接到界面。当我运行它时,它无法给出错误无法编译连接:

ibcocoatouchoutletconnection : 87q50w485w < IBProxyObject : 9u7-25whnsk> => UIViewTableViewCell => <IBUIViewTableCell>, where uiViewTableCell is the name for my IBoutlet.

我已经坚持了一段时间,所以任何帮助将不胜感激。对于这个错误,几乎没有任何在线帮助。

2 个答案:

答案 0 :(得分:1)

你是否宣布你的财产是这样的:

@property (nonatomic, retain) IBOutlet UITableViewCell *myTableViewCell

看起来你宣称它像IBUIViewTableCell

答案 1 :(得分:0)

您不需要为TableviewCell连接Outlet。 Jsut转到IB。

- &GT;单击TableviewCell

- &GT;转到Identity Inspector

- &GT;在Tableviewcell的类属性中选择你的CustomCell Calss。

- &GT;现在您可以自定义您的tableview Cell。

相关问题