ios 类方法block怎么回调函数?

ios 类方法block怎么回调函数


慕娘9325324
浏览 1054回答 2
2回答

喵喵时光机

我在viewDidLoad中断点打印showDataLabel是这样的Printing description of self->_showDataLabel:<UILabel: 0x7f86bb5b8cc0; frame = (134 98; 170 21); text = '我是第一个页面的数据'; opaque = NO; autoresize = RM+BM; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x7f86bb545b60>>是有值的 .在CCViewController中我把myblock声明成属性回调写在返回事件中- (IBAction)backPageAction:(id)sender {if (self.myblock) {self.myblock(self.showDataLabel.text);}[self dismissViewControllerAnimated:YES completion:^{}];}
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

iOS