美文网首页
NSDictionary

NSDictionary

作者: DeerRun | 来源:发表于2018-12-12 17:17 被阅读0次
    NSDictionary *dict = [NSDictionary dictionaryWithObject:@"lnj" forKey:@"name"];
    NSString *name = [dict objectForKey:@"name"];
    
    NSDictionary *dict = [NSDictionary dictionaryWithObjects:@[@"lnj", @"30", @"1.75"] forKeys:@[@"name", @"age", @"height"]];
    

    相关文章

      网友评论

          本文标题:NSDictionary

          本文链接:https://www.haomeiwen.com/subject/cbephqtx.html