iphone - What is the proper way to store a chosen ACAccount for a further use through the app? -
i'm building app in wich user utilize 1 of ios integrated twitter accounts. i'm using accounts framework , in documentation example, business relationship wich request twitter performed grabbed way : acaccount *twitteraccount = [accountsarray objectatindex:0];
user has no selection regarding wich "twaccount" using.
i build uisheet display twitter accounts , allow user take 1 wants, my question is :
what proper way store chosen business relationship long term utilize through app ?
edit : sorry question wasn't exclusively clear. want store store other preferences app. first time user launching app has chose business relationship use, after never have chose anymore when he'll relaunch it.
store other object you'd store. it's object. retain it. example, under arc you'd assign property. remember register acaccountstoredidchangenotification in case user something, such deleting account, behind back; if notification arrives, supposed release acaccount object , fetch again.
the business relationship uniquely identified identifier
, on subsequent launches of app can fetch 1 time again accountwithidentifier:
.
iphone ios ios6 social-framework
No comments:
Post a Comment