From d96f993d68e586ed15e54636b8ee1fb42887de4e Mon Sep 17 00:00:00 2001 From: Mazyad Alabduljaleel Date: Mon, 30 Jun 2014 14:01:26 +0400 Subject: [PATCH] fixes #3 [FIX]: Crash when you keep the scrollview around longer than the ShyNavBarManager.. need to remove our proxy in time. [NEW]: cocoaPods version bump --- TLYShyNavBar.podspec | 4 ++-- TLYShyNavBar/TLYShyNavBarManager.m | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/TLYShyNavBar.podspec b/TLYShyNavBar.podspec index 5386038..c76210e 100644 --- a/TLYShyNavBar.podspec +++ b/TLYShyNavBar.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "TLYShyNavBar" - s.version = "0.9.2" + s.version = "0.9.3" s.summary = "TLYShyNavBar makes your UINavigationBar expand/shrink by adding just a single line. It also comes with extension view support!" s.description = <<-DESC @@ -81,7 +81,7 @@ Pod::Spec.new do |s| # Supports git, hg, bzr, svn and HTTP. # - s.source = { :git => "https://github.com/telly/TLYShyNavBar.git", :tag => "0.9.2" } + s.source = { :git => "https://github.com/telly/TLYShyNavBar.git", :tag => "0.9.3" } # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # diff --git a/TLYShyNavBar/TLYShyNavBarManager.m b/TLYShyNavBar/TLYShyNavBarManager.m index 3e91733..d99076e 100644 --- a/TLYShyNavBar/TLYShyNavBarManager.m +++ b/TLYShyNavBar/TLYShyNavBarManager.m @@ -101,6 +101,11 @@ static inline CGFloat AACStatusBarHeight() return self; } +- (void)dealloc +{ + _scrollView.delegate = _delegateProxy.originalDelegate; +} + #pragma mark - Properties - (void)setViewController:(UIViewController *)viewController