Skip to content
Browse files

change extension method namespacing prefix from frank_ to FEX_

  • Loading branch information...
1 parent e5a8b41 commit 4fc6e8252f8eabe6828054a9df76f3d8bcf06035 @moredip committed Oct 4, 2012
Showing with 9 additions and 11 deletions.
  1. +9 −11 src/UIScrollView+FrankScrolling.m
View
20 src/UIScrollView+FrankScrolling.m
@@ -6,34 +6,32 @@
//
//
-#import "UIScrollView+FrankScrolling.h"
-
@implementation UIScrollView (FrankScrolling)
-- (void) frank_scrollToTop {
+- (void) FEX_scrollToTop {
[self setContentOffset: CGPointZero];
- [self frank_forceDelegateCallOnScroll];
+ [self FEX_forceDelegateCallOnScroll];
}
-- (void) frank_scrollToBottom {
+- (void) FEX_scrollToBottom {
CGPoint maxContentOffset = CGPointZero;
maxContentOffset.y = self.contentSize.height - self.frame.size.height;
[self setContentOffset: maxContentOffset];
- [self frank_forceDelegateCallOnScroll];
+ [self FEX_forceDelegateCallOnScroll];
}
-- (void) frank_setContentOffsetX: (NSInteger) x
+- (void) FEX_setContentOffsetX: (NSInteger) x
y: (NSInteger) y {
CGPoint point = CGPointMake(x, y);
[self setContentOffset: point animated: NO];
- [self frank_forceDelegateCallOnScroll];
+ [self FEX_forceDelegateCallOnScroll];
}
-- (void) frank_forceDelegateCallOnScroll {
+- (void) FEX_forceDelegateCallOnScroll {
// force call to delegate, in case implementors rely on this behavior
if([self.delegate respondsToSelector: @selector(scrollViewDidScroll:)]) {
[self.delegate scrollViewDidScroll: self];
@@ -45,13 +43,13 @@ - (void) frank_forceDelegateCallOnScroll {
@implementation UITableView (FrankScrolling)
-- (void) frank_scrollToRow: (NSInteger) row inSection: (NSInteger) section {
+- (void) FEX_scrollToRow: (NSInteger) row inSection: (NSInteger) section {
NSIndexPath *indexPath = [NSIndexPath indexPathForRow: row inSection: section];
[self scrollToRowAtIndexPath: indexPath
atScrollPosition: UITableViewScrollPositionNone
animated: NO];
- [self frank_forceDelegateCallOnScroll];
+ [self FEX_forceDelegateCallOnScroll];
}
@end

0 comments on commit 4fc6e82

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