Skip to content
This repository
Browse code

change extension method namespacing prefix from frank_ to FEX_

  • Loading branch information...
commit 4fc6e8252f8eabe6828054a9df76f3d8bcf06035 1 parent e5a8b41
Pete Hodgson authored

Showing 1 changed file with 9 additions and 11 deletions. Show diff stats Hide diff stats

  1. +9 11 src/UIScrollView+FrankScrolling.m
20 src/UIScrollView+FrankScrolling.m
@@ -6,34 +6,32 @@
6 6 //
7 7 //
8 8
9   -#import "UIScrollView+FrankScrolling.h"
10   -
11 9 @implementation UIScrollView (FrankScrolling)
12 10
13   -- (void) frank_scrollToTop {
  11 +- (void) FEX_scrollToTop {
14 12 [self setContentOffset: CGPointZero];
15 13
16   - [self frank_forceDelegateCallOnScroll];
  14 + [self FEX_forceDelegateCallOnScroll];
17 15 }
18 16
19   -- (void) frank_scrollToBottom {
  17 +- (void) FEX_scrollToBottom {
20 18 CGPoint maxContentOffset = CGPointZero;
21 19 maxContentOffset.y = self.contentSize.height - self.frame.size.height;
22 20 [self setContentOffset: maxContentOffset];
23 21
24   - [self frank_forceDelegateCallOnScroll];
  22 + [self FEX_forceDelegateCallOnScroll];
25 23 }
26 24
27 25
28   -- (void) frank_setContentOffsetX: (NSInteger) x
  26 +- (void) FEX_setContentOffsetX: (NSInteger) x
29 27 y: (NSInteger) y {
30 28 CGPoint point = CGPointMake(x, y);
31 29 [self setContentOffset: point animated: NO];
32 30
33   - [self frank_forceDelegateCallOnScroll];
  31 + [self FEX_forceDelegateCallOnScroll];
34 32 }
35 33
36   -- (void) frank_forceDelegateCallOnScroll {
  34 +- (void) FEX_forceDelegateCallOnScroll {
37 35 // force call to delegate, in case implementors rely on this behavior
38 36 if([self.delegate respondsToSelector: @selector(scrollViewDidScroll:)]) {
39 37 [self.delegate scrollViewDidScroll: self];
@@ -45,13 +43,13 @@ - (void) frank_forceDelegateCallOnScroll {
45 43
46 44 @implementation UITableView (FrankScrolling)
47 45
48   -- (void) frank_scrollToRow: (NSInteger) row inSection: (NSInteger) section {
  46 +- (void) FEX_scrollToRow: (NSInteger) row inSection: (NSInteger) section {
49 47 NSIndexPath *indexPath = [NSIndexPath indexPathForRow: row inSection: section];
50 48 [self scrollToRowAtIndexPath: indexPath
51 49 atScrollPosition: UITableViewScrollPositionNone
52 50 animated: NO];
53 51
54   - [self frank_forceDelegateCallOnScroll];
  52 + [self FEX_forceDelegateCallOnScroll];
55 53 }
56 54
57 55 @end

0 comments on commit 4fc6e82

Please sign in to comment.
Something went wrong with that request. Please try again.