objective c - [AnyObject]? does not have a member named 'mutableCopy' -



objective c - [AnyObject]? does not have a member named 'mutableCopy' -

var sortingarray:nsmutablearray? sortingarray = fetchedresultscontroller?.fetchedobjects.mutablecopy()

i error

[anyobject]? not have fellow member named 'mutablecopy'

how pull out mutable copy?

the fetchedobjects property of nsfetchedresultscontroller defined [anyobject]? - don't have convert nsarray or nsmutablearray - utilize is.

since array in swift value type, copied value , not reference, means re-create created assigning variable. in:

var sortingarray = fetchedresultscontroller?.fetchedobjects

a re-create of fetchedobjects copied sortingarray.

objective-c swift nsmutablearray

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -