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

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

效果如图

相关推荐
思盛iOS签名上架2 小时前
App苹果签名有什么作用?
macos·ios·cocoa
CocoaKier5 小时前
Facebook广告后台收不到Adjust回传数据,我们排查了一个月终于找到了根因
ios·facebook
MartinYeung55 小时前
[论文学习]MAC:多智能体宪章学习
人工智能·学习·macos
greasyfork6 小时前
Mac Sketch v2026.3 矢量图设计工具
macos·ui·sketch
无定义_10 小时前
萌新联赛(六)
macos·objective-c·cocoa
风安•辛幸20 小时前
mac上微信最新v4以上版客户端多开教程,亲测可用
macos·微信
weixin_531670891 天前
Interlude起来:动作动画和文字通知哪个更适合休息提醒?Mac上有没有用桌宠做动作引导的软件?
人工智能·macos·mac·swift
FairGuard手游加固1 天前
iOS 游戏加固技术解析:代码混淆、资源加密、内存保护与重签名检测
安全·游戏·macos·unity·ios·objective-c
思盛iOS签名上架1 天前
iOS企业签名原理是什么?
macos·ios·cocoa
Daniel_Coder1 天前
我用 SwiftUI + GRDB 做了一个「按时吃药·服药提醒」App
ios·swiftui·swift·widgetkit