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

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

效果如图

相关推荐
林疏safe21 分钟前
CAD2026最新mac的安装教程收集免费分享
macos
Digitally41 分钟前
如何高效安全地将 iPhone 与 Mac 同步
安全·macos·iphone
程序员允诺43 分钟前
办公 WiFi 二次隔离下的远程桌面解决方案实践(Mac → Win11)
macos
2501_915918411 小时前
介绍如何在电脑上查看 iPhone 和 iPad 的完整设备信息
android·ios·小程序·uni-app·电脑·iphone·ipad
hudawei9961 小时前
win和Mac在创建python虚拟环境,启动环境等操作的异同
windows·python·macos·虚拟环境
晨枫阳1 小时前
iOS Universal Links配置
ios
2501_916008891 小时前
没有 Mac 如何在 Windows 上创建 iOS 应用描述文件
android·macos·ios·小程序·uni-app·iphone·webview
提笔忘字的帝国12 小时前
【教程】macOS 如何完全卸载 Java 开发环境
java·开发语言·macos
北京自在科技13 小时前
苹果iOS 26.3实现跨安卓数据无缝迁移
android·ios·findmy
郑梓斌16 小时前
Luban 2 Flutter:一行代码在 Flutter 开发中实现图片压缩功能
flutter·ios