代码不应该有任何效果它应该在任何地方都可以使用它不会产生编译器警告
基本上有时我想做NSAssert。但是,有时我不想做 NSAssert,而是做我的 if {} 我自己。这样我就可以轻松设置或取消设置断点
目前这就是我所做的。
if (entityName==@"Business")
{
error=nil; //Some code for breakpoint. I want something that do nothing actually.
}
只是碰巧我有一个名为 error 的变量,我将不再使用它。但是什么是好的选择
我也试过 [nil donthing]; 但这得到了编译器错误。