将标签连接到XCode 5中的插座

时间:2013-09-28 14:43:57

标签: ios xcode5

我已更新到XCode 5,我无法使用旧方法将标签连接到插座:ctrl-从Connections检查器拖动到表格视图单元格。没有弹出窗口

在我的tableview中,我有一个带有两个标签的ArticleCell:

@interface ArticleCell : UITableViewCell
@property (nonatomic, weak) IBOutlet UILabel *title;
@property (nonatomic, weak) IBOutlet UILabel *date;
@end

我想将这两个标签连接到这个插座。在XCode 5中有不同的方法吗?

1 个答案:

答案 0 :(得分:4)

如果您将故事板或XIB文件中的表格视图单元格的"自定义类" 设置为" ArticleCell",则应该能够控制再次将您的插座拖到标签上。