Properly accessing a segue's destination view controller to assign protocol delegates
I'm encountering some problems in integrating segue and protocols while implementing a selection list. In my selection list .h I have: #import <UIKit/UIKit.h> @protocol SelectionListViewControllerDelegate <NSObject> @required - (void)rowChosen:(NSInteger)row; @end @interface SelectColor : UITableViewController <NSFetchedResultsControllerDelegate> -(IBAction)saveSelectedColor; @property (nonatomic, strong) id <SelectionListViewControllerDelegate> delegate; @end In my selection list .m I have: @implementation SelectColori @synthesize delegate; //this method is called from a button on ui -