如题所述
éè¿æ¯è¾æ¯å¦çäºnilã
//// main.m
// åå ¸
//
// Created by dushengduan on 15/6/28.
// Copyright (c) 2015å¹´ dushengduan. All rights reserved.
//
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
NSDictionary *dic2=[NSDictionary dictionaryWithObjectsAndKeys:nil,@"key2",@"value3",@"key3", nil];
//éè¿keyè·åvalueå¼
NSObject *objNew=[dic2 objectForKey:@"key2"];
if (objNew == nil) {
NSLog(@"valueå¼ä¸ºç©ºã");
}
return 0;
}
温馨提示:答案为网友推荐,仅供参考