ios - Unwind segue not working -


i'm doing tutorial apple's start developing ios apps.

on tutorial: storyboards page (link above), i'm told make custom classes 2 views. simplicity i'll call them table view (has table) , add view (has text field add items table).

the table view has button links opens add view, , add view has 2 buttons on navigation bar: cancel , done.

i told write empty method unwindtolist in .m file of add view:

- (ibaction)unwindtolist:(uistoryboardsegue *)segue {  } 

then told link both cancel , done buttons exit item in scene dock (see image @ bottom), , pick method unwindtolist. result, what's supposed happen, quoted tutorial:

now, run app. @ launch, see table view—but there’s no data in it. can click add button , navigate [the add view] [the table view]. can click cancel , done buttons navigate [the table view]."

however, when click cancel or done, nothing happens @ all. i'm sure both linked.

thanks in advance!

tutorial image

if read tutorial see unwind method needs in uiviewcontroller unwinding to - tutorial -

an unwind segue created adding action method destination view controller (the view controller want unwind to).

...

because want unwind xyztodolisttableviewcontroller, need add action method format xyztodolisttableviewcontroller interface , implementation.

so, should create unwindtolist method in table view controller, not in add view controller.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -