I’ve already read the post Passing data to views using Storyboards, but still have problem with calling methods:
Now I have AViewController and BViewController, both connected with Storyboard (no XIBs).
In BViewController :
-(void)doSth:(int)num;
So how can I call the doSth: method in AViewController?
The old way like [bViewController doSth:123]; don’t work because I can’t get the instance of BViewController in the Storyboard.
Thanks.
Peak
I found if i use:
(“MapView” is the identifier i set for that scene/view in storyboard)
and i just tested the old way and it works for me:
i can call methods in MapViewController directly, aka