You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1021 B
C

//
// SuperPlayerHelpers.h
// Pods
//
// Created by Steven Choi on 2020/3/20.
//
#ifndef SuperPlayerHelpers_h
#define SuperPlayerHelpers_h
// player的单例
#define SuperPlayerShared [SuperPlayerSharedView sharedInstance]
// 屏幕的宽
#define ScreenWidth [[UIScreen mainScreen] bounds].size.width
// 屏幕的高
#define ScreenHeight [[UIScreen mainScreen] bounds].size.height
// 颜色值RGB
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
// 图片路径
#define SuperPlayerImage(file) [UIImage imageNamed:[@"SuperPlayer.bundle" stringByAppendingPathComponent:file]]
#define IsIPhoneX (ScreenHeight >= 812 || ScreenWidth >= 812)
// 小窗单例
#define SuperPlayerWindowShared [SuperPlayerWindow sharedInstance]
#define TintColor RGBA(252, 89, 81, 1)
#define LOG_ME NSLog(@"%s", __func__);
#endif /* SuperPlayerHelpers_h */