There is a warning message “Assigning to ‘id’ from incompatible type ‘DetailViewController*’ Type ‘DetailViewController*’ does not conform to the ‘TreatmentSelectionDelegate’ protocol“, which is showing in the below coding. Why would be the reason for such warning
_rootViewController.delegate = _detailViewController;
To your DetailViewController’s interface (.h) file, add the last word to your class declaration:
DetailViewController needs to know to conform to the delegate methods you’re expecting it to be able to handle.