ACAccountStoreDidChangeNotification is called repeatedly

I am using facebook in my ios application to post score.While logging into facebook i check whether facebook account is configured in my iPhone setting, if it is not configured i give a message as "Configure your facebook login in iphone setting". So when the user configures it i get a notification my app by using " ACAccountStoreDidChangeNotification ". My problem is this notification is called several times even if user has changed account only once

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sharingStatus) name:ACAccountStoreDidChangeNotification object:nil]; This is how i have registered notification

  • (void)sharingStatus { i give message as account being configured.
  • } Can anyone please help me why the notification ACAccountStoreDidChangeNotification is getting called several times. I followed this link Handle ACAccountStoreDidChangeNotification for Facebook & Twitter in iOS 6+ but was not that useful to me. Thank you

    链接地址: http://www.djcxy.com/p/66726.html

    上一篇: 接收方向更改通知时StatusBar方向错误

    下一篇: ACAccountStoreDidChangeNotification被重复调用