Objective c - pass back string value using delegate
问题 I want to pass UITextField *nameText from GreenViewController to UILabel *nameValue in ViewController using delegate. I made delegate, the onSave method in ViewController is called but the screen is not going back and the name is not passed. What is the problem? Here are the header and impelentation files: GreenViewController.h #import <UIKit/UIKit.h> @protocol GreenViewDelegate <NSObject> -(void)onSave:(NSString*)nameValue; @end @interface GreenViewController : UIViewController @property id