Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i = 0;
- while (YES) {
- @autoreleasepool {
- NSString *string = [[NSString alloc] initWithFormat:@"%d", i];
- // or
- // NSString *string = [[NSString alloc] init];
- [[string rac_willDeallocSignal] subscribeCompleted:^{
- NSLog(@"obj dealloc");
- }];
- }
- i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement