SHOW:
|
|
- or go back to the newest paste.
| 1 | - | struct obj_layout {
|
| 1 | + | id obj = [[NSObject alloc] init]; |
| 2 | - | NSUInteger retained; |
| 2 | + | NSLog(@"retainCount=%d", [obj retainCount]); |
| 3 | - | }; |
| 3 | + | |
| 4 | /* | |
| 5 | - | + (id)alloc |
| 5 | + | * retainCount=1 будет выведено в консоль |
| 6 | - | {
|
| 6 | + | */ |