1 2 3 4 5 ··· 25 下一页
摘要: with open('./abc.txt', 'r') as f: for line in f: print(line) 阅读全文
posted @ 2021-09-23 16:39 ximenchuixie 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 苹果官网文章 https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app?language=objc 阅读全文
posted @ 2021-03-30 21:21 ximenchuixie 阅读(74) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/53439246 阅读全文
posted @ 2021-02-28 00:08 ximenchuixie 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 原函数: - (void)sayNumber:(NSInteger)num { NSLog(@"sayNumber:%d", num); } 修改函数入参: [self aspect_hookSelector:@selector(sayNumber:) withOptions:AspectPosit 阅读全文
posted @ 2021-01-29 00:48 ximenchuixie 阅读(389) 评论(0) 推荐(0) 编辑
摘要: Cancel需要用UIAlertActionStyleCancel这个属性 UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"Cancel" style:(UIAlertActionStyleCancel) handler:^(UIAl 阅读全文
posted @ 2020-12-17 12:34 ximenchuixie 阅读(114) 评论(0) 推荐(0) 编辑
摘要: import os import fnmatch for dirPath, dirs, files in os.walk('./'): for file_name in files: if fnmatch.fnmatch(file_name, '*.m'): file_path = dirPath 阅读全文
posted @ 2020-11-17 17:11 ximenchuixie 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 读文件时改一下编码就行,把 UTF-8 编码 改成 UTF-8-sig f = open('new2.txt', encoding='UTF-8-sig') 阅读全文
posted @ 2020-11-10 13:38 ximenchuixie 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 打开charles,手机跟电脑在同一局域网 手机配置无线网手动代理,ip为电脑ip,端口为8888 安装Charles的ssl根证书: 在Charles的help->SSL proxying菜单中点击“Install Charles root certificate to device or rem 阅读全文
posted @ 2020-10-03 21:07 ximenchuixie 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.打开vscode,shift+cmd+p 2.输入 "shell command" 3.安装 阅读全文
posted @ 2020-09-26 16:19 ximenchuixie 阅读(403) 评论(0) 推荐(0) 编辑
摘要: block会持有外部变量,不会持有局部变量。嵌套block中的第一层block的局部变量对于内部block来说就是外部变量。 所以下面例子这哪个blockB中用self的话还需要再strongify一次,否则blockB还是会持有blockA中的局部变量self,还是会造成循环引用。 @weakif 阅读全文
posted @ 2020-09-19 15:49 ximenchuixie 阅读(142) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 25 下一页