20 lines
693 B
C
20 lines
693 B
C
//
|
|
// HBDefines.h
|
|
// QinJiuTV
|
|
//
|
|
// Created by HI_LOSER on 2024/5/6.
|
|
//
|
|
|
|
#ifndef HBDefines_h
|
|
#define HBDefines_h
|
|
|
|
#define HBWeakSelf __weak typeof(self) weakSelf = self;
|
|
#define HBScreenSize [[UIScreen mainScreen] bounds].size
|
|
#define HBStatusBarHeight [UIApplication sharedApplication].windows.firstObject.windowScene.statusBarManager.statusBarFrame.size.height
|
|
#define HBNavBarHeiht (HBStatusBarHeight + 44)
|
|
#define HBAdapt(floatValue) (floatValue*[[UIScreen mainScreen] bounds].size.width/375.0)
|
|
//#define HBDispatchAsyncOnMainQueue(x) __weak typeof(self) weakSelf = self; dispatch_async(dispatch_get_main_queue(), ^{ typeof(weakSelf) self = weakSelf; {x}});
|
|
|
|
|
|
#endif /* HBDefaults_h */
|