Why does EAAccessoryDidConnectNotification occur twice?
问题 I have a class that manages messages coming from and going to an external accessory to an iPad. In the init I have the following code: - (id) init { self = [super init]; if (!self) return; [[EAAccessoryManager sharedAccessoryManager] registerForLocalNotifications]; //we want to hear about accessories connecting and disconnecting [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(accessoryDidConnect:) name:EAAccessoryDidConnectNotification object:nil]; [