遇到的几个iOS问题

1 unable to boot the simulator

跑模拟器的时候遇到这个报错,

解决方法 处理办法:

删除升级之前的模拟器缓存,重启模拟器。删除路径:~/Library/Developer/CoreSimulator/Cache

注意:后面可能还会复现这个报错,M的电脑尤其容易出现,然后再次删除,重新打开模拟器即可

presentViewcontroleler的问题

解决方法

设置 .modalPresentationStyle = UIModalPresentationOverCurrentContext;

presentView之后原来的窗口变小了

复制代码
  LBSlidePopViewController *vc = [[LBSlidePopViewController alloc] init];
    vc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
    [self presentViewController:vc animated:YES completion:nil];

presentViewcontroller之后,背景变成黑色了

设置vc.modalPresentationStyle 成UIModalPresentationOverCurrentContext

复制代码
 LBSlidePopViewController *vc = [[LBSlidePopViewController alloc] init];
    vc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
    [self presentViewController:vc animated:YES completion:nil];

绿色是上个页面的颜色,是要透露出来的

效果如图

相关推荐
崽崽长肉肉4 小时前
swift中的知识总结(一)
ios·swift
猫头虎5 小时前
GoLand 2025.3 最新变化:值得更新吗?
ide·windows·macos·pycharm·编辑器·intellij-idea·idea
2501_915106327 小时前
HTTP 协议详解,HTTP 协议在真实运行环境中的表现差异
网络·网络协议·http·ios·小程序·uni-app·iphone
_可乐无糖9 小时前
内网穿透工具使用指南:ngrok 和 cpolar
安全·macos·云计算
柯南二号9 小时前
【大前端】【iOS】iOS 真实项目可落地目录结构方案
前端·ios
2501_916007479 小时前
iOS与Android符号还原服务统一重构实践总结
android·ios·小程序·重构·uni-app·iphone·webview
不爱吃糖的程序媛10 小时前
鸿蒙PC命令行开发 macOS 上解决 pkg-config 命令未安装的问题
macos·华为·harmonyos
二流小码农11 小时前
鸿蒙开发:自定义一个圆形动画菜单
android·ios·harmonyos
淘气淘的宝宝11 小时前
MAC intel 迁移至M4后brew及iterm2配置
macos
不爱吃糖的程序媛11 小时前
解决鸿蒙PC命令行编译 macOS 上 cp 命令参数冲突问题
macos·harmonyos·策略模式