diff --git a/TLYShyNavBar/ShyControllers/TLYShyScrollViewController.h b/TLYShyNavBar/ShyControllers/TLYShyScrollViewController.h index a462e0e..fcd0dc4 100644 --- a/TLYShyNavBar/ShyControllers/TLYShyScrollViewController.h +++ b/TLYShyNavBar/ShyControllers/TLYShyScrollViewController.h @@ -18,7 +18,7 @@ @property (nonatomic, weak) UIRefreshControl *refreshControl; @property (nonatomic, weak) TLYShyViewController *parent; -@property (nonatomic, assign) BOOL hasCustomRefreshController; +@property (nonatomic, assign) BOOL hasCustomRefreshControl; - (CGFloat)updateLayoutIfNeeded; diff --git a/TLYShyNavBar/ShyControllers/TLYShyScrollViewController.m b/TLYShyNavBar/ShyControllers/TLYShyScrollViewController.m index 926111f..df94004 100644 --- a/TLYShyNavBar/ShyControllers/TLYShyScrollViewController.m +++ b/TLYShyNavBar/ShyControllers/TLYShyScrollViewController.m @@ -36,7 +36,7 @@ { CGFloat delta = insets.top - self.scrollView.contentInset.top; - if (!self.hasCustomRefreshController && (self.refreshControl == nil || [self.refreshControl isHidden])) { + if (!self.hasCustomRefreshControl && (self.refreshControl == nil || [self.refreshControl isHidden])) { [self.scrollView tly_setInsets:insets]; } diff --git a/TLYShyNavBar/TLYShyNavBarManager.h b/TLYShyNavBar/TLYShyNavBarManager.h index 0fed519..0e507dc 100644 --- a/TLYShyNavBar/TLYShyNavBarManager.h +++ b/TLYShyNavBar/TLYShyNavBarManager.h @@ -67,10 +67,9 @@ */ @property (nonatomic) TLYShyNavBarFade fadeBehavior; -/* Use this to set if the controller have any kind of refresh controller - * other than UIRefreshController (this one will be identified automatically) +/* Use this to set if the controller have any kind of custom refresh control */ -@property (nonatomic) BOOL hasCustomRefreshController; +@property (nonatomic) BOOL hasCustomRefreshControl; /* Set NO to disable shyNavBar behavior temporarily. * Defaults to NO diff --git a/TLYShyNavBar/TLYShyNavBarManager.m b/TLYShyNavBar/TLYShyNavBarManager.m index 2c18b02..591e9f2 100644 --- a/TLYShyNavBar/TLYShyNavBarManager.m +++ b/TLYShyNavBar/TLYShyNavBarManager.m @@ -196,16 +196,16 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage } } -- (void)setHasCustomRefreshController:(BOOL)hasCustomRefreshController +- (void)setHasCustomRefreshControl:(BOOL)hasCustomRefreshControl { - if (_hasCustomRefreshController == hasCustomRefreshController) + if (_hasCustomRefreshControl == hasCustomRefreshControl) { return; } - _hasCustomRefreshController = hasCustomRefreshController; + _hasCustomRefreshControl = hasCustomRefreshControl; - self.scrollViewController.hasCustomRefreshController = hasCustomRefreshController; + self.scrollViewController.hasCustomRefreshControl = hasCustomRefreshControl; } - (BOOL)stickyNavigationBar