Permalink
Browse files

- Corrected typo in MCPAGERVIEW_DID_UPDATE_NOTIFICATION

  • Loading branch information...
1 parent a0c0d0b commit 97ec6d751c28c90a978e37c6d0ee02ddc19e54dc @Baglan committed Jul 21, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 Classes/MCPagerView.h
  2. +1 −1 Classes/MCPagerView.m
  3. +2 −2 README.md
@@ -8,7 +8,7 @@
#import <UIKit/UIKit.h>
-#define MCPAGERVIEW_DID_UPDATE_NOTIFICTAION @"MCPageViewDidUpdate"
+#define MCPAGERVIEW_DID_UPDATE_NOTIFICATION @"MCPageViewDidUpdate"
@protocol MCPagerViewDelegate;
@@ -59,7 +59,7 @@ - (void)setPage:(NSInteger)page
}
// Send update notification
- [[NSNotificationCenter defaultCenter] postNotificationName:MCPAGERVIEW_DID_UPDATE_NOTIFICTAION object:self];
+ [[NSNotificationCenter defaultCenter] postNotificationName:MCPAGERVIEW_DID_UPDATE_NOTIFICATION object:self];
}
- (NSInteger)numberOfPages
View
@@ -60,9 +60,9 @@ Here is a simple "go to page" code from the sample project:
[scrollView setContentOffset:offset animated:YES];
}
-Alternatively, an object can observe the "MCPAGERVIEW_DID_UPDATE_NOTIFICTAION" notification on the default notification center:
+Alternatively, an object can observe the "MCPAGERVIEW_DID_UPDATE_NOTIFICATION" notification on the default notification center:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(onPageChange)
- name:MCPAGERVIEW_DID_UPDATE_NOTIFICTAION
+ name:MCPAGERVIEW_DID_UPDATE_NOTIFICATION
object:pagerView];

0 comments on commit 97ec6d7

Please sign in to comment.