SPLWindow 是 UIWindow 的子类,具有以下特性:
SPLWindow 使用屏幕录制的私有 API,所以请确保这不会发布到你的 AppStore 版本。
pod 'SPLWindow', '~> 1.0'
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// !!! Make sure this doesn't ship in production
self.window = [[SPLWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
self.window.rageShakeEnabled = YES;
self.window.highlightsTouchesDuringAirPlayMirroring = YES;
self.window.highlightsTouchesDuringScreenRecording = YES;
return YES;
}
Oliver Letterer
SPLWindow 在 MIT 许可协议下提供。有关更多信息,请参阅 LICENSE 文件。