Now A wants to send data to the popover point out viewcontrollor (B), but the A, B, ViewDidLoad prepareForSegue always called until after the results do not pass over the data. How to do that?
Reply:
You can set the properties of B prepareForSegue achieve
- (Void) prepareForSegue: (UIStoryboardSegue *) segue sender: (id) sender {
BViewController * destination = [segue destinationViewController];
destination.object = @ "aaaaaaaaaaa";
}
Reply:
I tried this, this is always in the dest viewcontroller prepareForSegue ViewDidLoad execution until after the call, so not ah
Reply:
If you want to get to before the ViewDidLoad value, then your ideas are wrong, you should write your own init method, when the init parameter passing.
initWithxxx: (id) xxx
No comments:
Post a Comment