“wangdongchao” 1 년 전
부모
커밋
ab461c09cd
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      WMBase/WMBase/TT_GeneralProfile.h

+ 4 - 1
WMBase/WMBase/TT_GeneralProfile.h

@@ -138,7 +138,10 @@ isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bo
 #define KScreenWidth  [UIScreen mainScreen].bounds.size.width
 
 
-
+// 弱引用self
+#define K_WEAK_SELF     __weak typeof(self) weakSelf = self;
+// 强引用self
+#define K_STRONG_SELF   __strong typeof(self) self = weakSelf;