草庐IT

SubjectReplyCell

全部标签

ios - 无法使用 block 在 UITableViewCell 中设置 UIButton 标题

我在自定义UITableViewCell中有一个UIButton,当我按下按钮时,它会使用AFNetworking将数据发布到我的服务器,在成功block我设置了一个新的按钮标题,但它不起作用。在CutomTableViewCell中,我使用了一个协议(protocol),因此我可以响应按钮点击:@implementationSubjectReplyCell-(IBAction)btnReplyPressed:(UIButton*)sender{if(self.delegate&&[self.delegaterespondsToSelector:@selector(postData:a