Posted By

zamza726 on 03/09/11


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Tintenklecks
cnathan


Set Notification


 / Published in: Objective C
 

Notification related with KeyboardWillShow

  1. - (void)viewDidLoad {
  2. [super viewDidLoad];
  3.  
  4. [[NSNotificationCenter defaultCenter] addObserver:self
  5. selector:@selector(keyboardWillShow:)
  6. name:UIKeyboardWillShowNotification
  7. object:nil];
  8. }
  9.  
  10. - (void)viewDidDisappear:(BOOL)animated
  11. {
  12. [super viewDidDisappear:animated];
  13. [[NSNotificationCenter defaultCenter] removeObserver:self
  14. name:UIKeyboardWillShowNotification
  15. object:nil];
  16. }
  17.  
  18. - (void)keyboardWillShow:(NSNotification *)aNotification
  19. {
  20. //...........
  21. }

Report this snippet  

You need to login to post a comment.