摘要:
#pragma -mark -keyBoardNotification- (void)addNotification {// if(IOS_VERSION<5.0)// {// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];// [[NSNotificationCenter defaultCenter] addObse... 阅读全文
摘要:
- (void) scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ int index = fabs(_theScrollView.contentOffset.x)/self.view.frame.size.width; if(_lastPageIndex == index) { _lastPageIndex++; } else{ _lastPageIndex = index; } if (_lastPageIndex>index){ //在这里,就是已经在最后一页,... 阅读全文