i using uisplitviewcontroller
implement master/detail flow app.
i not using navigation controller.
to go masterviewcontroller detailviewcontroller using: performseguewithidentifier("showdetail", sender: self)
what should use go detailviewcontroller masterviewcontroller?
i found simple solution using unwind action.
in mastercontrollerview add code:
@ibaction func backfromdetail(segue: uistoryboardsegue) { print("back") }
using interfacebuilder, create custom button inside detailviewcontroller, , connect exit icon (as explained here) selecting "backfromdetail".
after this, works magically! click on custom button go master.
Comments
Post a Comment