Take the 2-minute tour ×  I a using iOS 5 Twitter framework and
I save the ACAccount object. If user goes and deletes the
specific account from settings, the application (obviously)
crashes. My current workaround only save the username and re-
fetches the array of twitter accounts and matches the usernames
to get the correct account. Is there any better work around. I
know there is a notification from ACAccountStore   but I am not
receiving it.  The code below is the fixed version. Here I am
comparing the previousAccount username. If I remove that and use
the AccountObject picked by user earlier, and if the user has
changed that account, application will crash.
if([TWTweetComposeViewController canSendTweet]) {
ACAccountStore *store = [[ACAccountStore alloc] init];
ACAccountType *twitterType = [store accountTypeWithAccountTypeId
entifier:ACAccountTypeIdentifierTwitter];
NSArray *arrayOfAccounts =  [store
accountsWithAccountType:twitterType];                  if
(arrayOfAccounts