¿Puedo mostrar el teclado para UISearchbar
en la llamada al método viewWillAppear
sin tocar el UISearchbar
?¿Cómo mostrar el teclado sin tocar UISearchbar?
9
A
Respuesta
16
[mySearchBar becomeFirstResponder];
1
Solución de trabajo: -
No utilice [self.searchController setActive: SÍ] antes becomeFirstResponder.
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
dispatch_async(dispatch_get_main_queue(), ^{
//[self.searchController setActive:YES];
[self.searchController.searchBar becomeFirstResponder];
});
});
}
Cuestiones relacionadas
- 1. Cómo mostrar el emulador de Android sin un teclado
- 2. Cómo mostrar el teclado numérico
- 3. Mostrar teclado de software sin EditText
- 4. iPhone: ¿Es posible ocultar el teclado al tocar UITextField?
- 5. UISearchBar Sin cambiar
- 6. Ocultar el teclado al perder el foco de UISearchBar
- 7. Descartar el teclado con UISearchBar, sin renunciar a la primera respuesta
- 8. Enfoque a la UISearchBar pero el teclado no aparece
- 9. Cómo mostrar el teclado para un UIView
- 10. Cambiar el botón de búsqueda UISearchBar/teclado Título
- 11. cómo mostrar un teclado numérico
- 12. Cómo ocultar inputAccessoryView sin ignorar el teclado
- 13. UISearchBar Animation
- 14. Mostrar siempre el botón cancelar en un UISearchBar
- 15. iPhone: UISearchBar cómo buscar "" Cadena?
- 16. ¿Rieles cómo tocar el objeto de registro activo sin bloquear?
- 17. Botón para mostrar el teclado virtual?
- 18. Mostrar el teclado del iPhone programáticamente
- 19. ¿Cómo mostrar ventana emergente al tocar superposición en android?
- 20. Mostrar el teclado virtual cuando la actividad comienza
- 21. becomeFirstResponder sin ocultar el teclado
- 22. Mostrar el teclado en contenteditable UIWebView programmatically
- 23. ¿Cómo forzar al teclado a mostrar/ocultar?
- 24. iPhone UISearchBar y keyboardAppearance
- 25. UISearchBar y resignFirstResponder
- 26. teclado de iphone sin vista de texto
- 27. deslizamiento UISearchBar
- 28. ¿Cómo puedo desactivar/habilitar el botón de búsqueda del teclado UISearchBar?
- 29. ¿Puedo usar el teclado virtual sin EditText?
- 30. cómo mostrar pickerview en uitextfield no el teclado?