我想使用情节提要将静态单元与动作连接起来。问题是您无法将单元格与操作连接,因此我尝试了另一种方式。因此,在我的头文件中,我使用情节提要将此属性与静态单元格连接起来:
@property (nonatomic, strong) IBOutlet UITableViewCell *theStaticCell;
和
UITableViewCell *theCellClicked = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:1]];
if (theCellClicked == _theStaticCell) {
NSLog(@"Static cell clicked");
}
所以我想使用“更新”单元格,当你点击它时,上面的代码就会被执行。