Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
队友写过,
return ( jsonDict == nil ? nil : [jsonDict mutableCopy] );
什么是更简洁的代码版本Objective-C?
Objective-C
简单地return [jsonDict mutableCopy];
return [jsonDict mutableCopy];
如果jsonDict是 nil,那么调用mutableCopy也将产生 nil
jsonDict
mutableCopy