1.在PickViewController.h中声明block 属性
@property (nonatomic,strong) void(^block)(NSString *value);
2.在PickViewController.m中调用block
if (_block) {
_block(self.strdata0);
}
3.在ViewController.m中调用block方法
pickVC.block =^(NSString*value){
NSLog(@"%@",value);
};