第30月第8天 主线程执行

1.

    __weak typeof(self) weakSelf = self; 
   [[NSOperationQueue mainQueue]addOperationWithBlock:^{
        __strong __typeof(weakSelf) strongSelf = weakSelf;
        NSLog(@">>>>>>>>>test");
    }];
原文地址:https://www.cnblogs.com/javastart/p/10494776.html