Skip to content

Commit 704b8eb

Browse files
committed
Merge pull request #3 from wongzigii/patch-1
Fix warning in Xcode 6
2 parents d821cca + dbd0a8c commit 704b8eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Example/FlabbyTable/FlabbyTable/BRFlabbyTableManager.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
155155
CGPoint newOffset = [[change objectForKey:NSKeyValueChangeNewKey] CGPointValue];
156156
CGPoint oldOffset = [[change objectForKey:NSKeyValueChangeOldKey] CGPointValue];
157157
CGFloat verticalVelocity = oldOffset.y - newOffset.y;
158-
if (fabsf(verticalVelocity - _previousVerticalVelocity)>CGFLOAT_MIN) {
158+
if (fabs(verticalVelocity - _previousVerticalVelocity)>CGFLOAT_MIN) {
159159
if (verticalVelocity/newOffset.y > 1.05 || verticalVelocity/newOffset.y < 0.95) {
160160
BOOL didScrollToTop = newOffset.y == -_tableView.contentInset.top;
161161
if (didScrollToTop) {
@@ -206,4 +206,4 @@ - (void)applyFlabbinessForVerticalVelocity:(CGFloat)verticalVelocity{
206206
}
207207
}
208208

209-
@end
209+
@end

0 commit comments

Comments
 (0)