parameter names

This commit is contained in:
Ariel 2016-03-29 15:31:30 +03:00
parent 65e5fa04df
commit fadc4d2ee9
4 changed files with 8 additions and 9 deletions

View File

@ -18,7 +18,7 @@
@property (nonatomic, weak) UIRefreshControl *refreshControl; @property (nonatomic, weak) UIRefreshControl *refreshControl;
@property (nonatomic, weak) TLYShyViewController *parent; @property (nonatomic, weak) TLYShyViewController *parent;
@property (nonatomic, assign) BOOL hasCustomRefreshController; @property (nonatomic, assign) BOOL hasCustomRefreshControl;
- (CGFloat)updateLayoutIfNeeded; - (CGFloat)updateLayoutIfNeeded;

View File

@ -36,7 +36,7 @@
{ {
CGFloat delta = insets.top - self.scrollView.contentInset.top; 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]; [self.scrollView tly_setInsets:insets];
} }

View File

@ -67,10 +67,9 @@
*/ */
@property (nonatomic) TLYShyNavBarFade fadeBehavior; @property (nonatomic) TLYShyNavBarFade fadeBehavior;
/* Use this to set if the controller have any kind of refresh controller /* Use this to set if the controller have any kind of custom refresh control
* other than UIRefreshController (this one will be identified automatically)
*/ */
@property (nonatomic) BOOL hasCustomRefreshController; @property (nonatomic) BOOL hasCustomRefreshControl;
/* Set NO to disable shyNavBar behavior temporarily. /* Set NO to disable shyNavBar behavior temporarily.
* Defaults to NO * Defaults to NO

View File

@ -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; return;
} }
_hasCustomRefreshController = hasCustomRefreshController; _hasCustomRefreshControl = hasCustomRefreshControl;
self.scrollViewController.hasCustomRefreshController = hasCustomRefreshController; self.scrollViewController.hasCustomRefreshControl = hasCustomRefreshControl;
} }
- (BOOL)stickyNavigationBar - (BOOL)stickyNavigationBar