I am new to swift I want to reload my tableview so I used tableviewName.reloadData() After this the table view is reloaded and scrolled a bit upwards but I want to stay where it is
Here is the code
func searchResult(row: Int, searchText: String, tag: Int) {
(defaultAnswerQuestionsArray[tag] as! DefaultAnswerObjectClass).defaultAnswerId = row
(defaultAnswerQuestionsArray[tag] as! DefaultAnswerObjectClass).defaultAnswerDescription = searchText
tableViewCollection.reloadData()
tableViewCollection.alwaysBounceVertical = false
}