I have SendingController which push to nav stack SendingDeatilsController (which one has a TableView). User should should pick in TableView one row (it checked by Checkmark) and I would like to pass the value of this row (let it will NSString object) to the SendingController.
How can I realize this behaviour in my application? And is SendingController parent for SendingDetailController (attribute parentController of SDC refers to SC) ??
If you want to implement this behaviour, pass the
SendingDetailControllera reference to the previous view controller. This way the detail view controller can send a message to the previous one on the stack.In your
SendingDetailControllerdefine a weak reference :Now before pushing the
SendingDetailControlleron the stack don’t forget to set itssendingControllerproperty.and write the method that will recieve the string.
This should do the job.