ios - preserve object in memory while deleting from disk -


i send nsarray of managed objects uiviewcontroller, in view controller can select 1 of objects , expand info user can see.

meanwhile database of objects updated in background, creating new objects , deleting old ones.

the problem when object in nsarray erased background, user becomes unable check it.

¿how can maintain objects in nsarray while exist in uiviewcontroller?

you on right track creating dicts objects, don't on main thread.

you'll create new nsmanagedobjectcontext , set it's parent property 1 associated w main queue. use it's performbock method create dictionaries (i prefer objects, that's call). when have completed assembling array use dispatch_async pass main thread


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -