ios – NSAssert vs NSCAssert

前端之家收集整理的这篇文章主要介绍了ios – NSAssert vs NSCAssert前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
NSAssert和NSCAssert有什么区别?当我探索他们的实现时,他们看起来非常相似,我找不到我的问题的答案.

我想这也将解释NSParameterAssert和NSCParameterAssert之间的区别.

@H_403_4@

解决方法

The second is the difference between C and Objective-C assertions:
NSAssert should only be used in an Objective-C context (i.e. method
implementations),whereas NSCAssert should only be used in a C context
(i.e. functions).

更多在http://nshipster.com/nsassertionhandler/

@H_403_4@ @H_403_4@ 原文链接:https://www.f2er.com/iOS/331150.html

猜你在找的iOS相关文章