ios - Core data unique entity attribute -


i have got entity nsnumber id. receive web response userprofile create , save entity id. if receive 2 same userprofiles have 2 entities in base. how can confine base has 1 entity same user id?

instead of creating new user profile when receive data, use fetch request search existing profile. if find one, update , save. if don't, create new 1 , save.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -