diff --git a/Sources/TwitterPagerTabStripViewController.swift b/Sources/TwitterPagerTabStripViewController.swift index c20782f..587aafe 100644 --- a/Sources/TwitterPagerTabStripViewController.swift +++ b/Sources/TwitterPagerTabStripViewController.swift @@ -123,7 +123,7 @@ public class TwitterPagerTabStripViewController: PagerTabStripViewController, Pa } deinit { - NSNotificationCenter.defaultCenter().removeObserver(self) + titleView.removeObserver(self, forKeyPath: "frame") } public override func viewDidLayoutSubviews() {