将NSMutableDictionary变量设置为NSDictionary

And*_*rew 3 cocoa-touch objective-c nsdictionary ios

是否可以指定NSDictionary一个NSMutableDictionary?例如,

NSMutableDictionary * root = AppDelegate.data;
Run Code Online (Sandbox Code Playgroud)

这里AppDelegate.data是一个NSDictionary.

acq*_*sce 7

你想要这样的东西,希望它能解释自己

root = [AppDelegate.data mutableCopy];
Run Code Online (Sandbox Code Playgroud)