I started a Master-Detail iOS type of project in Xcode.
I have the MasterViewController and DetailViewController working as I expect.
Here is what I want to know how to do, using a good practice.
The usual behaviour is that when tapping on an item in the Master table-view, the DetailViewController fires up and does its job.
But there are cases when things are not ready and I do not want the DetailViewController to show up. I just do not want anything to happen, or I want something else to happen. How can I do that? And what is the best (standard) way to do it?
In pseudo code I would like something like:
if situation-is-not-good {
do-some-other-things
} else {
Start-DetailViewController-Normally
}