文件名称:delegatedemo
文件大小:37KB
文件格式:ZIP
更新时间:2018-05-19 03:12:10
代理
#import "ViewController.h" @interface ViewController () { } @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NewViewController *newController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"hulin"]; newController.delegata = self; [self showViewController:newController sender:self]; // [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(testNotifi:) name:@"TestNotifi" object:nil]; }
【文件预览】:
DelegateDemo.xcodeproj
----project.xcworkspace()
--------contents.xcworkspacedata(157B)
--------xcuserdata()
----project.pbxproj(17KB)
----xcuserdata()
--------ihefe26.xcuserdatad()
--------ihefe29.xcuserdatad()