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

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

效果如图

相关推荐
Frank_ZZ_7 小时前
mac使用Homebrew安装miniconda(mac搭建python环境),并在IDEA中集成miniconda环境
python·macos
Mac技巧大咖9 小时前
Mac清理磁盘空间,不删文件也能磁盘瘦身
macos
niuTaylor11 小时前
【Linux和RTOS简析】
linux·运维·服务器·macos·macbook air·换硬盘·扩内存
Vic1010111 小时前
Mac如何查看 IDEA 的日志文件
java·macos·intellij-idea
木木黄木木13 小时前
Theos环境搭建与XM文件开发指南,以及iOS弹窗源码分享
ios·c#
木木黄木木13 小时前
iOS插件,Theos环境搭建与XM文件开发指南(完善版本)
ios
帅次13 小时前
Flutter:StatelessWidget vs StatefulWidget 深度解析
android·flutter·ios·小程序·swift·webview·android-studio
货拉拉技术15 小时前
货拉拉基于“声明式”的埋点方案实践
ios·程序员
帅次15 小时前
Flutter Widget 体系结构解析
android·flutter·ios·小程序·xcode·web app·dalvik
zhglhy16 小时前
MAC查看自己真实IP命令
网络协议·tcp/ip·macos