在提交错误报告之前,我想确认自己没有遗漏明显的东西。
在有条件地显示<body>
<div class="menuBar">
<a href="index.html" title="Home">
<img src="homeButton.png" alt="Home Button" id = "homeButton" width="50" height="50">
</a>
<a href="bubble.html" title="Bubble Sort">Bubble Sort</a>
<a href="insertion.html" title="Insertion Sort">Insertion Sort</a>
<a href="merge.html" title="Merge Sort">Merge Sort</a>
<a href="quick.html" title="Quick Sort">Quick Sort</a>
</div>
</body>
.menuBar{
width: 100vw;
height: 5vh;
background-color: plum;
display: flex;
align-items: center;
justify-content: space-around;
}
(或List
)后,该应用在从另一个视图导航时崩溃。奇怪的是,列表上方没有视图时,应用程序不会崩溃。
没有可用的堆栈跟踪。该应用仅因Form
而崩溃。
复制并粘贴以复制:
EXC_BAD_ACCESS (SIGSEGV)
在列表为空时尝试有条件地显示消息时,我注意到了此行为。上面的代码是一个抽象,但是使用了几乎相同的逻辑结构。
macOS 10.15.5
Xcode 11.5
模拟器(iPhone 11 Pro)
答案 0 :(得分:3)
尝试将以下内容添加到NavigationView():
cout<< setprecision(20) << ans<<" "<<ceil(ans);
让我知道这是否适用于您的系统。