Recargar desde ultima celda (3 Opciones)

//1 override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { if indexPath.row == stakeholders.count { willDisplayLastRow?(row:indexPath.row) } } //2 override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { if indexPath.row == messages.count - 1 { willDisplayLastRow?(row: indexPath.row) } } //3 func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { if (indexPath.section + 1 == arrayCalendarList.count) && (indexPath.row == arrayCalendarList[indexPath.section].arrayEvents.count - 1) { print("ultima celda") print("Page \(page) Fecha \(ultimateDate)") if isFullCalendarList == true { if loadMorePages == true { loadCalendarList() } } else { if loadMorePages == true { loadCalendarListById() } } } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.