iOS Developer Library


EAAccessoryDelegate Protocol Reference

Deployment Target:

On This Page


The EAAccessoryDelegate protocol defines a single method for receiving notifications when the associated EAAccessory object is disconnected. Implementation of this method is optional.

  • Tells the delegate that the specified accessory was disconnected from the device.


    - (void)accessoryDidDisconnect:(EAAccessory *)accessory;



    The accessory that was disconnected.


    The accessory manager calls this method as a convenience whenever it receives an EAAccessoryDidDisconnectNotification notification. You can use this method to remove any references to the specified accessory object and to stop any services currently using the accessory.

    Because this is a convenience method, your delegate does not also need to register as an observer of the EAAccessoryDidDisconnectNotification notification. However, if you want your delegate to be notified of newly connected accessories, you should configure it as an observer of the EAAccessoryDidConnectNotification notification.