TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The Top 5 Crashes on iOS

20 点作者 andrewmlevy大约 9 年前

1 comment

makecheck大约 9 年前
The first example’s remedy seems to be wrong.<p>I am not aware of any reason to test for &quot;nil&quot; in Objective-C, as that remedy suggests. Sending the &quot;doSomething&quot; message to &quot;nil&quot; should do nothing.<p>If SIGSEGV does occur for an object, it is probably for the exact opposite reason: you have a pointer that is NOT &quot;nil&quot; but it refers to something that has been freed. (Or, the SIGSEGV is not related to objects at all, and is caused by some other access such as plain C code.)