2014年9月4日 星期四

BOOL vs. Boolean vs. bool

Boolean is an old Carbon keyword (historic Mac type), defined as an unsigned char.
BOOL is an Objective-C type defined as signed char.
bool is a defined version of the _Bool standard C type.

You should use BOOL for common use and Boolean in CF.

資料來源:http://stackoverflow.com/a/3016912/3295047