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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -