YES / TRUE之间的差异? [英] Differences between YES/TRUE?
本文介绍了YES / TRUE之间的差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题,可以快速回答。
我有这个代码:
I have one question, and it can be answered quickly. I have this code:
.h
UITableView *table;
.m
table.hidden = YES;
table.hidden = TRUE;
最后两行代码之间有什么区别吗?或者是完全相同的YES和TRUE?
Is there any difference between the last two lines of code ? Or is EXACTLY the same YES and TRUE?
推荐答案
TRUE
宏仅作为与C代码的向后兼容性提供(Objective-C被设计为C的严格超集)。它们都意味着同样的事情。
The TRUE
macro is only provided as backwards-compatibility with C code (Objective-C is designed to be a strict super-set of C). They both mean the same thing.
这篇关于YES / TRUE之间的差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文