【文件属性】:
文件名称:AutoreleasePool:自动释放池
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-25 06:05:47
Objective-C
自动释放池
我的博文的完整配套代码。
__weak NSString *string_weak_ = nil ;
- ( void )viewDidLoad {
[ super viewDidLoad ];
// 场景 1
NSString *string = [ NSString stringWithFormat: @" leichunfeng " ];
string_weak_ = string;
// 场景 2
// @autoreleasepool {
// NSString *string = [NSString stringWithFormat:@"leichunfeng"];
// string_weak_ = string;
// }
// 场景 3
//
【文件预览】:
AutoreleasePool-master
----.gitignore(494B)
----AutoreleasePool()
--------AppDelegate.h(290B)
--------ViewController.h(228B)
--------Base.lproj()
--------main.m(347B)
--------Images.xcassets()
--------Info.plist(1KB)
--------AppDelegate.m(2KB)
--------ViewController.m(1KB)
----README.md(1KB)
----LICENSE(1KB)
----AutoreleasePoolTests()
--------Info.plist(754B)
--------AutoreleasePoolTests.m(896B)
----AutoreleasePool.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(16KB)