fanwa

挡住的处理事件地址在:http://www.cnblogs.com/fanwa/archive/2012/02/14/2350667.html

以下是还原的处理事件:

注册监听事件:

[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(keyboardWillBeHidden:) name:UIKeyboardWillHideNotificationobject:nil];

事件代码:

- (void)keyboardWillBeHidden:(NSNotification*)aNotification {    

    CGPoint scrollPoint = CGPointMake(0.0, 0.0);

    [scView setContentOffset:scrollPoint animated:YES];

}

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-09-25
  • 2022-12-23
  • 2021-12-07
  • 2022-01-22
  • 2022-02-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-15
  • 2021-09-19
  • 2021-12-25
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案