Override Back Button In Navigation Controller
<p>I have storyboard with these flow. I am using <a href="https://github.com/John-Lluch/SWRevealViewController" rel="noreferrer">SWRevealViewController</a> to navigate to each navigation controller. </p>

<pre><code>- Navigation Controller 1 --&gt; View Controller Initial (Home) --&gt; View Controller Target
- Navigation Controller 2 --&gt; View Controller X --&gt; View Controller Y --&gt; View Controller Target
- Navigation Controller 3 --&gt; View Controller M --&gt; View Controller Target
</code></pre>

<p>From <strong>View Controller Target</strong> on each flow, I want to override its back button so it could back to <strong>View Controller Initial (Home)</strong> and release its object on memory.</p>

<p>Is there any possible way to do this? Any help would be appreciated. Thank you.</p>