iPhone编程中的Delegate实现案例
在iPhone开发中,delegate是一种常用的类间通信方式。它允许两个类通过定义协议和委托关系来传递消息和响应。本案例将展示如何实现delegate机制,以实现两个类之间的有效通信。
MyDelegateSample.zip
预估大小:53个文件
MyDelegateSample
文件夹
MyDelegateSample
文件夹
AppDelegate.h
378B
FirstViewController.m
2KB
en.lproj
文件夹
InfoPlist.strings
45B
MyDelegateSample-Prefix.pch
335B
MyDelegateSample-Info.plist
1KB
SecondViewController.m
1KB
FirstViewController.h
388B
...
54.22KB
文件大小:
评论区