iOS委托模式实例

时间:2016-04-09 09:14:03
【文件属性】:
文件名称:iOS委托模式实例
文件大小:34KB
文件格式:ZIP
更新时间:2016-04-09 09:14:03
iOS Delegate Cocoa Touch框架下使用大量使用委托(delegation),根据苹果公司的文档,delegate是Cocoa Touch框架所采用的委托模式的一种形式。例子实现一个自己构建的类似于UIButton功能的组件。
【文件预览】:
DelegateExample
----DelegateExample()
--------main.m(334B)
--------Default.png(6KB)
--------DelegateExample-Info.plist(1KB)
--------AppDelegate.h(275B)
--------AppDelegate.m(2KB)
--------MyButton.m(933B)
--------Default-568h@2x.png(18KB)
--------RootViewController.h(371B)
--------RootViewController.xib(10KB)
--------Default@2x.png(16KB)
--------DelegateExample-Prefix.pch(333B)
--------MyButton.h(335B)
--------RootViewController.m(994B)
--------en.lproj()
----DelegateExample.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(14KB)
--------xcuserdata()

网友评论

  • 对新手理解委托模式有帮助。
  • 不错的例子,收益
  • 很好的例子,学习了
  • 资料不错 ,楼主辛苦了
  • 可以 学习中
  • 很有帮助,感谢楼主分享!
  • 不错,对新手理解委托模式有帮助。
  • 不错哦~例子看完后自己就编写了~
  • 例子不错,值得下载
  • 正在学习委托资料