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

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

效果如图

相关推荐
仙剑魔尊重楼27 分钟前
iMazing 3.1.3官方中文版新功能介绍
macos·objective-c·cocoa
Genie cloud3 小时前
在 Mac 上使用 Docker 安装宝塔并部署 LNMP 环境
macos·docker·容器·云计算
清蒸鳜鱼4 小时前
【Mobile Agent——Droidrun】MacOS+Android配置、使用指南
android·macos·mobileagent
2501_915918414 小时前
HTTPS 代理失效,启用双向认证(mTLS)的 iOS 应用网络怎么抓包调试
android·网络·ios·小程序·https·uni-app·iphone
Swift社区4 小时前
Flutter 路由系统,对比 RN / Web / iOS 有什么本质不同?
前端·flutter·ios
zhyongrui5 小时前
SnipTrip 发热优化实战:从 60Hz 到 30Hz 的性能之旅
ios·swiftui·swift
Andy Dennis5 小时前
ios开发 xcode配置
ios·cocoa·xcode
JoyCong19985 小时前
iOS 27 六大功能前瞻:折叠屏、AI Siri与“雪豹式”流畅体验,搭配ToDesk开启跨设备新协作
人工智能·ios·cocoa
linweidong5 小时前
屏幕尺寸的万花筒:如何在 iOS 碎片化生态中以不变应万变?
macos·ios·移动开发·objective-c·cocoa·ios面试·ios面经