ios - Share data between targets in xcode project -


i have project 2 different targets (a free , paid version of same app) , have list items save nsuserdefaults. question is, there way share list between 2 version of app, without using keychain or similar ?

your can use app group , save items in it. project -> capabilities -> app groups

  1. add app group in targets

  2. using nsuserdefaults

ex:

nsuserdefaults *mydefaults = [[nsuserdefaults alloc] initwithsuitename:@"com.group.identifier"]; 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -