Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

292
Vistas
Cómo animar una tabla en particular Ver celda

Tengo una vista de tabla que tiene 4 celdas. Y quiero ocultar las dos primeras celdas por unos segundos y estoy haciendo esto:

 func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { if historyArray.count > 0 { cell.alpha = 0 if indexPath.row == 0 || indexPath.row == 1 { UIView.animate( withDuration: 1, delay: 0.05 * Double(indexPath.row), animations: { cell.alpha = 1 }) } }

pero este código no me ha funcionado. como hacer esto.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

¿Puedes probar esto?

 func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { if indexPath.row == 0 || indexPath.row == 1 { cell.transform = CGAffineTransform(translationX: self.view.frame.width, y: 0) UIView.animate(withDuration: 1) { cell.transform = .identity } } }
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda