遇到的几个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];

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

效果如图

相关推荐
AI工具测评与分析32 分钟前
EhViewer安卓ios全版本类下载安装工具的完整路径解析
android·ios
FairGuard手游加固7 小时前
版本更新!FairGuard-Mac加固工具已上线!
macos
叽哥15 小时前
flutter学习第 18 节:设备功能调用
android·flutter·ios
金玉满堂@bj18 小时前
OS设备UDID查看方法
macos·objective-c·cocoa
Swift社区1 天前
Swift 实战:从数据流到不重叠区间的高效转换
开发语言·ios·swift
庸懒1 天前
Electron自定义菜单栏及Mac最大化无效的问题解决
前端·macos·electron
ayaya_mana2 天前
Notepad--:国产跨平台文本编辑器,Notepad++ 的理想替代方案
linux·windows·macos·编辑器·notepad·notepad--
xixixin_2 天前
【H5】禁止IOS、安卓端长按的一些默认操作
android·css·ios·h5
叽哥2 天前
flutter学习第 17 节:项目实战:综合应用开发(下)
android·flutter·ios
Andy_GF2 天前
纯血鸿蒙 HarmonyOS Next 调试证书过期解决流程
前端·ios·harmonyos