RemoteNetworkDataSource.swift 1.0 KB

12345678910111213141516171819202122232425262728
  1. /*****************************************************************************
  2. * RemoteNetworkDataSource.swift
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2018 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Carola Nitz <nitz.carola # googlemail.com>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. import Foundation
  13. @objc(VLCRemoteNetworkDataSource)
  14. public class RemoteNetworkDataSource: NSObject, UITableViewDataSource {
  15. public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  16. return 1
  17. }
  18. public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  19. if let wifiCell = tableView.dequeueReusableCell(withIdentifier: VLCWiFiUploadTableViewCell.cellIdentifier()) {
  20. return wifiCell
  21. }
  22. return UITableViewCell()
  23. }
  24. }