随笔分类 -  Apple开发

1 2 3 4 5 ··· 20 下一页
Apple开发中无法细致分类的相关知识点, 多为一个分类中的知识点链接到这里。
摘要:1、首先定义一个协议,声明update_frame方法: @protocol GC_UpdateFrameProtocol <NSObject> - (void)update_frame; @end 2、让你的所有类都遵循这个协议: @interface GC_Clock : UIView <GC_ 阅读全文
posted @ 2025-05-15 17:36 CH520 阅读(9) 评论(0) 推荐(0)
摘要:20250421 20250421 20250508_Guideline 2.1 Dear App Review Team, Thank you for identifying the text visibility issue in Dark Mode (Guideline 2.1). We ha 阅读全文
posted @ 2025-05-02 13:04 CH520 阅读(66) 评论(0) 推荐(0)
摘要:可以使用以下命令来将当前应用的build版本号设置为日期: xcrun agvtool new-version -all "$(date +"%Y%m%d%H%M")" 其中,$(date +"%Y%m%d%H%M")会获取当前日期和时间,并将其格式化为YYYYMMDDHHMM的形式,作为新的bui 阅读全文
posted @ 2025-04-25 23:19 CH520 阅读(83) 评论(0) 推荐(0)
摘要:直接回复就行。我们进行沟通,请帮我们指导一下啥的 然后留个电话,时区 ,沟通时间等等。要求最好是中文沟通。 阅读全文
posted @ 2025-04-25 23:12 CH520 阅读(23) 评论(0) 推荐(0)
摘要:#import <UIKit/UIKit.h> #import "GC_AppDelegate.h" @interface GC_Application : UIApplication @end @implementation GC_Application /** * @brief 将事件发送到应用 阅读全文
posted @ 2025-04-25 23:11 CH520 阅读(33) 评论(0) 推荐(0)
摘要:- (CIImage *)NSImage_To_CIImage:(NSImage *)gc_image { CGImageRef cg_image = [gc_image CGImageForProposedRect:nil context:nil hints:nil]; CIImage *ci_i 阅读全文
posted @ 2024-11-28 23:43 CH520 阅读(43) 评论(0) 推荐(0)
摘要:1、国内版本 时长 价格(元) 一个月 1000 三个月 2800 半年 5500 一年 10000 2、Overseas Version Subscription Duration Price (USD) One Month 168 A Quarter 480 Half A Year 920 On 阅读全文
posted @ 2024-11-25 00:55 CH520 阅读(54) 评论(0) 推荐(0)
摘要:1 创建一个文件夹 2 打开终端进入此文件夹 cd /Users/gc/Desktop/GC_Codes/打包dmg专用/Ocer_1.0.0_202411231800 3 使用命令生成application替身,执行以下命令 ln -s /Applications/ Applications 4 阅读全文
posted @ 2024-11-23 18:54 CH520 阅读(53) 评论(0) 推荐(0)
摘要:- (void)test { UIImage *image = GC_Image(@"🍅"); CGImageRef image_ref = image.CGImage; NSValue *image_value = [NSValue valueWithPointer:image_ref]; im 阅读全文
posted @ 2024-11-12 10:28 CH520 阅读(9) 评论(0) 推荐(0)
摘要:// 【十六进制_字符串】转【十进制_整形】 - (NSInteger)hex_To_Int:(NSString *)hex_string { if ([hex_string hasPrefix:@"#"]) { hex_string = [hex_string substringFromIndex 阅读全文
posted @ 2024-11-04 15:38 CH520 阅读(24) 评论(0) 推荐(0)
摘要:NSString+Regex.h #import <Foundation/Foundation.h> // 正则表达式相关 @interface NSString (Regex) // 邮箱验证 - (BOOL)is_Email; // 手机号码验证 - (BOOL)is_Phone_Num; // 阅读全文
posted @ 2024-08-05 16:09 CH520 阅读(17) 评论(0) 推荐(0)
摘要:@interface NSString (UUIDExtraction) - (NSArray<NSString *> *)extract_UUID_Strings; @end @implementation NSString (UUIDExtraction) // 提取出字符串中长度为24的UUI 阅读全文
posted @ 2024-08-02 18:07 CH520 阅读(16) 评论(0) 推荐(0)
摘要:在某个界面完全禁用 IQKeyboard - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; // 页面appear 禁用 [IQKeyboardManager sharedManager].enable 阅读全文
posted @ 2024-07-24 15:47 CH520 阅读(387) 评论(0) 推荐(0)
摘要:可能由于出国节点的问题,无论是执行pod install还是pod update都卡在Analyzing dependencies不动了,慢到无以复加的地步,无法忍受。 其实原因在于以上两个命令执行时会升级CocoaPods的spec仓库,加一个参数可以省略这一步,然后速度就会提升不少。 加参数的命 阅读全文
posted @ 2024-07-23 14:55 CH520 阅读(135) 评论(0) 推荐(0)
摘要:在 UIViewController 中 在UIViewController里重写以下方法: - (void)viewWillLayoutSubviews { [super viewWillLayoutSubviews]; [self.collection mas_remakeConstraints 阅读全文
posted @ 2024-07-08 16:24 CH520 阅读(88) 评论(0) 推荐(0)
摘要:1、前言 在 Masonry 布局框架中,mas_makeConstraints 和 mas_remakeConstraints 虽然都用于设置视图的约束,但它们的行为和用途是有区别的。 2、功能作用 mas_makeConstraints mas_makeConstraints 用于首次为视图创建 阅读全文
posted @ 2024-07-08 16:10 CH520 阅读(249) 评论(0) 推荐(0)
摘要:xcode代码缩进和格式化,都要选中。 处理部分的缩进或格式化,选中部分代码,然后 commond+[ 向左缩进 commond+] 向右缩进 control+i 代码格式化 同理,想整个文件都格式化,请先comand+a全选中,然后按以上同样快捷键操作。 阅读全文
posted @ 2024-07-05 11:44 CH520 阅读(34) 评论(0) 推荐(0)
摘要:1、安装Homebrew /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)" 2、使用Homebrew安装Cocoapods brew install cocoapod 阅读全文
posted @ 2024-06-17 13:47 CH520 阅读(17) 评论(0) 推荐(0)
摘要:NSTextField+Copypast.h @interface NSTextField (Copypast) @end NSTextField+Copypast.m @implementation NSTextField (Copypast) - (BOOL)performKeyEquivale 阅读全文
posted @ 2024-06-16 17:55 CH520 阅读(86) 评论(0) 推荐(0)
摘要:- (void)drawRect:(CGRect)rect { // 获取上下文(/画笔/绘图环境) CGContextRef context = UIGraphicsGetCurrentContext(); // 小段长度 CGFloat line_dash = self.height / 20; 阅读全文
posted @ 2024-05-27 14:22 CH520 阅读(76) 评论(0) 推荐(0)

1 2 3 4 5 ··· 20 下一页