---
title: "[IOS]Null passed to a callee that requires a non-null argument"
author: "繁星水"
date: "2019-08-23T18:14:53Z"
tags: []
categories: ["移动开发"]
slug: "ios-null-passed-to-a-callee-that-requires-a-non-null-argument"
draft: false
lastmod: "2019-08-23T18:14:53Z"
id: 2443798
url: "https://jameskaron.iteye.com/blog/2443798"
---

遇到warning:Null passed to a callee that requires a non-null argument

只需要在变量前加上\_Nullable,例如

```
HwIpPingDiagnosticsResult  * _Nullable pingResult
```