1:从A跳转到B
在B中设置属性,A跳转B的时候,给属性设置值
@property(nonatomic) NSInteger flag;
A做跳转操作时,给B中的属性设置值
SecondViewController *second = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
second.delegate = self;
second.flag = 0;
[self presentViewController:second animated:YES completion:nil];
暂时就这种 ,我现在只需要这个