c_cpp Adicionando e removendo observer de eventos de teclado

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了c_cpp Adicionando e removendo observer de eventos de teclado相关的知识,希望对你有一定的参考价值。

// register for keyboard notifications
[[NSNotificationCenter defaultCenter] addObserver:self 
                                         selector:@selector(keyboardWillShow:) 
                                             name:UIKeyboardWillShowNotification 
                                           object:self.view.window];
// register for keyboard notifications
[[NSNotificationCenter defaultCenter] addObserver:self 
                                         selector:@selector(keyboardWillHide:) 
                                             name:UIKeyboardWillHideNotification 
                                           object:self.view.window];


// unregister for keyboard notifications while not visible.
[[NSNotificationCenter defaultCenter] removeObserver:self 
                                                    name:UIKeyboardWillShowNotification 
                                                  object:nil]; 
// unregister for keyboard notifications while not visible.
[[NSNotificationCenter defaultCenter] removeObserver:self 
                                                    name:UIKeyboardWillHideNotification 
                                                  object:nil];  

以上是关于c_cpp Adicionando e removendo observer de eventos de teclado的主要内容,如果未能解决你的问题,请参考以下文章

text Tercer Paso:Adicionando Archivo是一间客房Proyecto

Adicionando uma chave extrangeira mysql [重复]

c_cpp Inserir no inicio,no final,imprimir lista,remover da lista ou esvaziar lista

c_cpp 从排序列表中删除重复项IIhttp://oj.leetcode.com/problems/remove-duplicates-from-sorted-list-ii/

c_cpp 从列表末尾删除第N个节点http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/

c_cpp Passagemdeparâmetrosporvalor e por referencia em Linguagem C