摘要: 1.修改工程名字 .打开工程 点击工程名称 回车 直接修改 .此时会弹出一个对话框,点击Rename 2. 修改scheme名称 .点击Xcode上面的工具栏Product->Sechme->Edit Sechme .弹出对话框 会车直接修改 修改完成之后 点击Close 3.修改目录名称 .点击工 阅读全文
posted @ 2023-03-10 18:00 kawerd 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: 导入头文件#import <StoreKit/StoreKit.h>+ (void)yoStoreReview{ if (@available(iOS 10.3, *)) { if ([SKStoreReviewController respondsToSelector:@selector(requ 阅读全文
posted @ 2023-02-27 16:40 kawerd 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 机型 屏幕宽 屏幕高 键盘高 iPhone 8 375 667 260 iPhone 8 Plus 414 736 271 iPhone X 375 812 336 iPhone Xs 375 812 336 iPhone Xs Max 414 896 346 iPhone XR 414 896 3 阅读全文
posted @ 2022-09-27 16:46 kawerd 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 1 using System.IO; 2 using UnityEngine; 3 using UnityEditor; 4 using UnityEditor.iOS.Xcode; 5 using UnityEditor.Callbacks; 6 using System.Collections; 阅读全文
posted @ 2022-06-08 15:28 kawerd 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 我们申请不同的权限需要对应的key,在info.plist内加上对用户的提示语 麦克风权限 NSMicrophoneUsageDescription 相机权限 NSCameraUsageDescription 地理坐标、定位权限 NSLocationUsageDescription NSLocati 阅读全文
posted @ 2022-04-15 16:59 kawerd 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 长按桌面APPIcon图标快捷操作添加功能开发 在支持 3D Touch 的设备上,Quick Actions 可以让用户更快,更少的操作步骤去完成他们最常做的事情,其中这么多操作可以通过主屏幕直接完成。比如用力地长按微信图标,会弹出诸如"扫一扫"和"我的二维码"等常用功能,这个我在加好友的情况下经 阅读全文
posted @ 2022-04-13 11:37 kawerd 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 我们一般会有长按一段文字显示气泡浮动操作选项的需求 我们常用的方法如下 cut: copy: select: selectAll: paste: delete: _promptForReplace: _transliterateChinese: _showTextStyleOptions: _def 阅读全文
posted @ 2022-04-01 15:31 kawerd 阅读(147) 评论(0) 推荐(0) 编辑
摘要: [PostProcessBuild] public static void OnPostprocessBuild(BuildTarget buildTarget, string buildPath) { if (buildTarget != BuildTarget.iOS) return; stri 阅读全文
posted @ 2022-04-01 09:38 kawerd 阅读(780) 评论(0) 推荐(0) 编辑
摘要: #import <AssetsLibrary/AssetsLibrary.h> 1、引用库 2、将GIF图片转为NSData类型 3、存储代码 ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; [library writeImage 阅读全文
posted @ 2022-03-18 10:14 kawerd 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 今天开发中需要将UIColor转为十六进制字符串,记录下修改代码 UIColor *color = [UIColor blueColor]; const CGFloat* components = CGColorGetComponents(color.CGColor); NSString *alph 阅读全文
posted @ 2022-03-15 17:22 kawerd 阅读(142) 评论(0) 推荐(0) 编辑