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
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
Post a Comment