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

google app engine - 403 Forbidden POST - Flask WTForms -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -