jimdusseau/RBVolumeButtons — pull request #2 by rivera-ernesto (2013-04-19 05:55:59+00:00)
Title: Fix notifications' handling

- UIApplicationDidEnterBackground/ForegroundNotification are redundant when using UIApplicationDidBecomeActive/ResignActiveNotification

- `removeObserver:` with `self` doesn't work when using `addObserverForName:object:queue:usingBlock:` which returns `An opaque object to act as the observer`. As a result the observer was never removed causing a crash when the RBVolumeButtons object is deallocated and a new notification occurs.