防止字典value为空崩溃

{

advertise = "";

businessName = "\U6e5b\U6c5f\U9e21";

businessPhone = "";

busniessAddress = "";

picList =(

);

synopsis = "";

}


//防止字典value为空崩溃

self.nameField.text=[[self.aponsorDataobjectForKey:@"businessName"]class] == [NSNullclass]?@"暂无资料":[self.aponsorDataobjectForKey:@"businessName"];

你可能感兴趣的:(防止字典value为空崩溃)