foundation系列

1如何将布尔值转为OC对象?

 1把 BOOL 值包装到 NSNumber中:

   NSNumber *boolNumber = [NSNumber numberWithBool:YES]

 2获取BOOL值:

   BOOL b = [boolNumber boolValue];

原文地址:https://www.cnblogs.com/dzq1991/p/6158629.html