Search This Blog

Thursday, November 24, 2016

iOS Swift UITableView. How to scroll to a special cell

For scrolling table view to special cell(row) we need to use method scrollToRow and index of special cell.
let index = self.findIndex()
let indexPath = NSIndexPath(row: index, section: 0)
self.tableView.scrollToRow(at: indexPath as IndexPath, at: .top, animated: true)

5 comments:

  1. Thank you very much for drawing my notice to this. Your blog is jam-packed with useful facts. Until I read that, I would have no idea. I'll come back for more fantastic material. Best wishes, and good luck.
    -Custom Web Design

    ReplyDelete
  2. There are many articles circulating on internet that exaggerate about Custom Website. But your article is an exception that made me understand it without any difficulty.

    ReplyDelete
  3. Thank you very much for drawing my notice to this. Your blog is jam-packed with useful facts. Until I read that, I would have no idea. I'll come back for more fantastic material.
    Best wishes, and good luck.
    Web Design USA

    ReplyDelete
  4. Good content. I was looking for this type of content. Saved my time for further search.
    You should always provide that type of content. I appreciate your determination to give the students a good title.Custom Designed Websites

    ReplyDelete
  5. Great share!One of the best blogs I have Ever Seen. Keep going!
    QA Testing Services

    ReplyDelete