I have a tableView (first view) and the detailView (next view) containing the details of that table.
Now on selecting a particular row from the first view I want to pass the index number of the selected row from didSelectRowAtIndexPath of the first view to the initWithNibName of the next view. How can I do that?
You can implement an own method in your view controller you want to instantiate and call that method instead of
-initWithNibName:bundle:. In that method, you call