ios - Property of mutable type 'NSMutableDictionary' has 'copy' attribute; an immutable object will be stored instead -


i using xcode9 , tried analyse project.then got following issue like

property of mutable type 'nsmutabledictionary' has 'copy' attribute; immutable object stored instead

please go through image shows analyze issue

enter image description here

how resolve issue?

it's analyzer issue , can ignore it.

just change type copy -> strong ?

@property ( nonatomic, strong) nsmutabledictionary *parameters; 

you can explicit use mutablecopy , change setter _ parameters = [parameters mutablecopy]; more friendly access. or use

self.parameters = [yourdictionaryname mutablecopy]; 

Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -