logo
  • 教程列表
  • SO官方文檔
  • NSDictionary
    • 建立
    • 使用文字建立
    • NSDictionary 到 NSArray
    • 使用 dictionaryWithObjectsAndKeys 建立
    • NSDictionary 到 NSData
    • 使用 plist 建立
    • NSDictionary 到 JSON
    • 在 NSDictionary 中設定值
    • 基於塊的列舉
    • 從 NSDictionary 獲取價值
    • 快速列舉
    • 檢查 NSDictionary 是否已有金鑰
  1. StackOverflow 文件
  2. Objective-C Language 教程
  3. NSDictionary
  4. 使用文字建立

使用文字建立

Created: November-22, 2018

NSDictionary *inventory = @{
    @"Mercedes-Benz SLK250" : @(13),
    @"BMW M3 Coupe" : @(self.BMWM3CoupeInventory.count),
    @"Last Updated" : @"Jul 21, 2016",
    @"Next Update"  : self.nextInventoryUpdateString
};
  • NSDictionary 到 NSArray
  • 建立

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明