iOS開發之oc(二十一)--Foundation(6)NSNumbe

NSNumber 作用:可以將基本數據類型轉化爲對象,致使其能在數組、字典中使用 代碼示例 1. void use() { // NSNumber基本使用 // 1. 把基本數據類型轉化成對象 NSNumber *num = [NSNumber numberWithInt:10]; NSDictionary *dic = @{
相關文章
相關標籤/搜索