Closed ivdma closed 9 years ago
@ivdma
Can you check if - (IBAction)someMethodName:(UIStoryBoard *) storyBoard;
also work?
If so, we can check for parameter name.
@yury
Yes, storyBoard
parameter works too.
Please test this new feature! Available in 0.8.0. Thanks, @yury!
Hey there,
Three things:
UIStoryboard
not UIStoryBoard
(source).UIStoryboardSegue
in order to hook up the exit button! I'm confused because others seem to not have run into these problems. Suggestions?To be clear to anyone else coming here to solve this problem: in order to get ib
to give a UIStoryboard
type you have to use the keyword storyboard
or story_board
as a parameter name in your method definition like so:
def exit_method_name(storyboard)
end
and that will produce
-(IBAction) unwind_to_list:(UIStoryBoard *) storyboard;
ib generates IBActions as follows:
- (IBAction)someMethodName:(id) sender;
, but Interface Builder's Exit expects it to be- (IBAction)someMethodName:(UIStoryBoard *) sender;
in order it to be draggable to Exit.I ended up editing stubs.h manually, but it would be nice to have it done by ib gem.