随笔分类 -  前端-iOS

摘要:iOS16下NavigationLink界面消失问题修复方案 问题描述 在iOS16系统版本下,从AccreditationMainView通过NavigationLink跳转到OCRIDAuthenticationView界面时会自动消失。经过分析发现,当LoadingManager的isLoad 阅读全文
posted @ 2025-07-18 09:11 Alerson 阅读(26) 评论(0) 推荐(0)
摘要:在 SwiftUI 中,当 GeometryReader 与 ScrollView 结合使用时,可能会导致滚动无法到达底部的问题。以下是常见原因和解决方法: 常见原因 1. 错误的 GeometryReader 放置位置 // ❌ 错误示例 - GeometryReader 放在 ScrollVie 阅读全文
posted @ 2025-07-17 14:14 Alerson 阅读(32) 评论(0) 推荐(0)
摘要:xcode 提示 : SDK does not contain 'libarclite' 提示没有找到 libarclite_iphonesimulator.a 文件; SDK does not contain 'libarclite' at the path '/Applications/Xcod 阅读全文
posted @ 2024-02-23 15:34 Alerson 阅读(397) 评论(0) 推荐(0)
摘要:注意事项 oc不能继承Swift类,所以向oc项目中添加的Swift类不能包含oc的子类。 Swift文件和.m不能重名。 继承oc的类的Swift类才能在oc中使用。 编译场景问题 用oc新建的iOS项目,在swift文件中默认使用release编译场景, 如果需要用到debug,需要在 Buil 阅读全文
posted @ 2022-10-13 09:28 Alerson 阅读(217) 评论(0) 推荐(0)
摘要:有些时候需要 让控制器全屏显示 ,不需要导航栏,或者说是在导航栏底部 基本情况: 控制器全屏 if (@available(iOS 11.0, *)) { self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInset 阅读全文
posted @ 2022-03-28 15:15 Alerson 阅读(75) 评论(0) 推荐(0)
摘要:``` - (NSMutableAttributedString *)mf_htmlAttribute:(NSString *)htmlString{ htmlString = [NSString stringWithFormat:@"%@",htmlString]; NSMutableAttributedString *attributedString = [[NSMutableAttribut 阅读全文
posted @ 2022-01-27 14:13 Alerson 阅读(334) 评论(0) 推荐(0)
摘要:数据格式如下: 遇到的问题是二维数组的 对象无法 通过 yymodel 直接实力话 ~~~ -"scoring_probability_distribution": [ -[ -{ "i": 0, "j": 0, "home": 0.132, "result": 7.894, "visiting": 阅读全文
posted @ 2022-01-24 15:55 Alerson 阅读(104) 评论(0) 推荐(0)
摘要:##首先要明确 #pragma 和_Pragma 是什么 这两个都是出自于c/c++ 的 ,其中#pragma 是预处理指令(preProcess directive ) ,#pragma是用来向编译器传达语言标准以外的一些信息。 ; _Pragma操作符,该操作符具有与 #pragma 指令相同的 阅读全文
posted @ 2021-11-28 15:54 Alerson 阅读(323) 评论(0) 推荐(0)
摘要:前言 现在已经是2021年了,中国国内的互联网生态国家管控越来越严禁,国家反垄断法,未成年人游戏限制,整治娱乐圈不良文化,出台公民网络个人信息保护法,全网进行app 应用进行安全审查,等等等,无不意味着,中国的互联网生态将由一个肆意发展的生态,转向合理合规的常态监管环境; 当然这和苹果公司八竿子打不 阅读全文
posted @ 2021-09-09 16:51 Alerson 阅读(761) 评论(0) 推荐(0)