FirstViewController SecondViewController 두개의 뷰가 존재하며 FirstViewController에 SecondViewController의 데이터를 전달하고자 한다. SecondViewController : 데이터를 전달 FirstViewController : 데이터를 받음 [SecondViewController.h] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // 프로토콜 선언 @protocol SecondViewDelegate < NSObject > ; @required - ( void ) getData:( int )data; @end // 델리게이트 선언 @ interface SecondViewController : UIViewController { id < SecondViewDelegate > delegate; } @property (nonatomic,assign) id < SecondViewDelegate > delegate; @end Colored by Color Scripter cs [SecondViewController.m] 1 2 // 값을 보냄 [self.delegate getSelectData: 10 ]; cs [FirstViewController.h] 1 2 3 4 # import "SecondViewController.h" @ interface F...