ios - WatchKit Use App Groups To Store Data -


i working on app ready apple watch. use parse in app, , instead of allowing user try , login watch, want use pfuser data iphone. if they're logged in, detects pfuser iphone using, if not, prompts them log in on iphone. question is, best way handle passing of data this? nsuserdefaults or app groups?

i think need enable app group, , can access nsuserdefaults app group. can use

let shareduserdefaults = nsuserdefaults(suitename:"<group identifier>") 

replace "<group identifier>" app group identifier, can find in apple develop identifiers link. can use "shareduserdefaults" set or want use.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -