没有合适的资源?快使用搜索试试~ 我知道了~
RYLazyProperty:好玩的Runtime --- 一行代码解决懒加载
共19个文件
m:4个
h:3个
plist:2个
需积分: 9 0 下载量 41 浏览量
2021-05-18
03:21:47
上传
评论
收藏 39KB ZIP 举报
温馨提示
好玩的Runtime: 一行代码解决懒加载 解决问题: 更方便的懒加载 - (Animal *)animal { if (_animal) { _animal = [Animal new]; } return _layerView; } 部分数据的容错 self.nameLabel.text = [NSString stringWithFormat:@"动物名称:%@", self.animal.name]; 使用方法: [Animal ry_setLazyPropertyArr:@[@"name",@"foots",@"attribute",]]; [ViewController ry_setLazyPropertyArr:@[@"animal"]]; 该方法仅支持 Objective-C 对象 在调用通过 ry_setLazyPropertyA
资源推荐
资源详情
资源评论
收起资源包目录
RYLazyProperty-master.zip (19个子文件)
RYLazyProperty-master
LazyProperty.xcodeproj
project.xcworkspace
contents.xcworkspacedata 157B
xcuserdata
ruoyi.xcuserdatad
UserInterfaceState.xcuserstate 38KB
xcuserdata
ruoyi.xcuserdatad
xcdebugger
Breakpoints_v2.xcbkptlist 785B
xcschemes
xcschememanagement.plist 484B
LazyProperty.xcscheme 3KB
project.pbxproj 12KB
README.md 788B
.gitignore 281B
LazyProperty
ViewController.m 2KB
Info.plist 1KB
main.m 334B
NSObject+RYLazyProperty.h 341B
NSObject+RYLazyProperty.m 3KB
Base.lproj
LaunchScreen.storyboard 2KB
Main.storyboard 3KB
ViewController.h 215B
AppDelegate.h 277B
Assets.xcassets
AppIcon.appiconset
Contents.json 585B
AppDelegate.m 2KB
共 19 条
- 1
资源评论
缪建明
- 粉丝: 42
- 资源: 4686
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功