“Como rolar para a seção na Tabelaview Swift” Respostas de código

Swift Scroll para TableViewCell

let indexPath = IndexPath(row: row, section: section)
tableView.scrollToRow(at: indexPath, at: .top, animated: true)
Ill Ibex

Como rolar para a seção na Tabelaview Swift

func tableView(_ tableView: UITableView, sectionForSectionIndexTitle title: String, at index: Int) -> Int {
        if let index = sectionsArr.firstIndex(where: { $0 == title }) {
            return index//0 for a, 2 for b, 3 for c, 4 for d
        }
        //print(index)
        return 0
    }
Fantastic Fish

Respostas semelhantes a “Como rolar para a seção na Tabelaview Swift”

Perguntas semelhantes a “Como rolar para a seção na Tabelaview Swift”

Mais respostas relacionadas para “Como rolar para a seção na Tabelaview Swift” em Swift

Procure respostas de código populares por idioma

Procurar outros idiomas de código