S
S
sojik2016-02-01 13:07:26
iOS
sojik, 2016-02-01 13:07:26

UISplitViewController how to close Details programmatically?

Something apparently I haven’t picked up checkers for a long time) with UISplitViewController
1. Create a new project in Xcode Master-Details, Universal for example, with Core Data - a project is created with UISplitViewController
2. When you click on the date created by "+" - we go on the Details controller
Question - how to go back from it programmatically, and not by the < Back button from above? How to close it? For example, I want to make a Delete button below and allow me to delete the date directly in this controller, and after that go directly to the Master. I searched stackoverflow and didn't find anything useful.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Tikhonov, 2016-02-02
@sojik

You want to dismiss the detail view controller back to the master, after a specific event (eg a touch on a button). In this case you have to pop the detail view controller navigation controller:
stackoverflow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question