05 2020 档案
摘要:iOS没法直接禁止用户截屏、录屏操作,但我们可以监听用户操作时提示用户。 截屏通知名:UIApplicationUserDidTakeScreenshot 录屏通知名:UIScreenCapturedDidChange
阅读全文
摘要:1、监听系统截屏通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleUserDidTakeScreenshotNotification:) name:UIApplicationUserD
阅读全文
摘要:1、unity调用OC OC类代码 // testUnity.h extern "C"{ //声明一个方法 void testUnityFunction(int index, const char *userName); } // testUnity.m extern "C"{ void testU
阅读全文
摘要:OC回调unity 有两种方法 第一种: UnitySendMessage方式(接口声明固定,只能是void method(string message);不能带有返回值;必须要挂载到对象后才能调用。) 使用方法很简单 NSString *resultStr = @"hello world"; Un
阅读全文
摘要:unity调用OC OC类代码 // testUnity.h extern "C"{ //声明一个方法 void testUnityFunction(int index, const char *userName); } // testUnity.m extern "C"{ void testUni
阅读全文