grgcombs / IntelligentSplitViewController

A smarter UISplitViewController that rotates correctly when placed inside a UITabBarController
Other
111 stars 22 forks source link

Dealloc method improvement suggestion #2

Closed carlospuk closed 13 years ago

carlospuk commented 13 years ago

In your dealloc method, you only need to do this once:

[[NSNotificationCenter defaultCenter] removeObserver:self 

...as this method removes the observer for all messages.

Therefore the next (identical) line can be removed.

Carlos

grgcombs commented 13 years ago

Yep, good catch.