05 2020 档案

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

点击右上角即可分享
微信分享提示