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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -