iOS 传值方式概览

iOS 提供多种传值方式:

  • 委托:在两个对象之间建立通信通道
  • 闭包:作为参数传递的代码块
  • 枚举:具有特定值的类型
  • Key-Value 编码:存储和传输数据到/从外部表示
  • NSNotificationCenter:发布/订阅事件通知
zip
swift-iOS五种传值方法.zip 预估大小:35个文件
folder
Code_ZCW_iOS_PassValue-master 文件夹
folder
Code_ZCW_iOS_PassValue.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 167B
file
project.pbxproj 21KB
folder
xcuserdata 文件夹
folder
abai.xcuserdatad 文件夹
folder
xcschemes 文件夹
file
Code_ZCW_iOS_PassValue.xcscheme 3KB
file
xcschememanagement.plist 494B
folder
xcdebugger 文件夹
file
Breakpoints_v2.xcbkptlist 473B
file
README.md 3KB
folder
Code_ZCW_iOS_PassValue 文件夹
file
NotifiationTwoViewController.h 256B
file
OneViewController.h 234B
file
MainTableViewController.h 251B
file
NotificationOneViewController.m 893B
file
main.m 349B
file
AppDelegate.h 292B
file
DelegateTwoViewController.m 2KB
file
BlockOneViewController.h 244B
file
TwoViewController.h 374B
file
DelegateOneViewController.h 250B
file
SingletonTwoViewController.m 881B
file
BlockOneViewController.m 865B
file
Info.plist 1KB
file
AppDelegate.m 2KB
file
NotifiationTwoViewController.m 889B
file
BlockTwoViewController.h 244B
file
OneViewController.m 2KB
file
NotificationOneViewController.h 258B
file
DelegateOneViewController.m 2KB
file
MainTableViewController.m 3KB
folder
Base.lproj 文件夹
file
LaunchScreen.storyboard 2KB
file
Main.storyboard 4KB
file
BlockTwoViewController.m 865B
file
SingletonOneViewController.h 252B
file
TwoViewController.m 1KB
file
SingletonTwoViewController.h 252B
file
SingletonOneViewController.m 881B
file
DelegateTwoViewController.h 423B
folder
Assets.xcassets 文件夹
folder
AppIcon.appiconset 文件夹
file
Contents.json 585B
zip 文件大小:30.62KB