__nonnull__
时间: 2023-08-26 22:15:14 浏览: 168
NOT NULL 和NULL
5星 · 资源好评率100%
__nonnull是对参数或者返回值进行修饰的关键字,表示该参数或者返回值不能为nil。使用__nonnull修饰的参数或者返回值,如果传入的实参为nil,编译器将会产生警告。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [nullable、nonnull、__nullable、__nonnull、_Nullable、__Nonnull 的区别](https://blog.csdn.net/wangyanchang21/article/details/79230770)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [iOS __nullable 和 __nonnull 区别](https://blog.csdn.net/shihuboke/article/details/78910684)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文