When I call myself in a reserved block, I usually get a warning:
[self.someView doSomething:^{
self.aVar = @”Hello!”;
}]; I will do:
__weak SomeObject *weakSelf = self;
[self.someView
When I call myself in a reserved block, I usually get a warning:
[self.someView doSomething:^{
self.aVar = @”Hello!”;
}]; I will do:
__weak SomeObject *weakSelf = self;
[self.someView
I have a class
@implementation MyClass
– (void) foo {
ivar = [NSString stringWithString:@”ivar”];
}
– (void) bar
{
NSLog(@”% @”, ivar);
} and main.m
MyClass * m = [[MyClass alloc]