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