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

  • 关于我们
  • 免责声明