Class
LibraryTableViewCell
class LibraryTableViewCell: UITableViewCell
Manages recorded scenes and allow users to view the details as well as upload them to the server
Relationships
Conforms To
UITableViewCell
Properties
scanTableViewCellDelegate
var scanTableViewCellDelegate: LibraryTableViewCellDelegate!
thumbnail
@IBOutlet weak var thumbnail: UIImageView!
titleLabel
@IBOutlet weak var titleLabel: UILabel!
infoLabel
@IBOutlet weak var infoLabel: UILabel!
uploadButton
@IBOutlet weak var uploadButton: UIButton!
deleteButton
@IBOutlet weak var deleteButton: UIButton!
uploadProgressView
@IBOutlet weak var uploadProgressView: UIProgressView!
Methods
setSelected(_:animated:)
override func setSelected(_ selected: Bool, animated: Bool)
Configure the view for the selected state
setupCellWithURL(url:)
func setupCellWithURL(url: URL)
set up cells for the recorded scenes gallery view
uploadButtonTapped(_:)
@IBAction func uploadButtonTapped(_ sender: Any)
When the upload button is pressed, upload the files to the server
deleteButtonTapped(_:)
@IBAction func deleteButtonTapped(_ sender: Any)
When the delete button is pressed, delete all files
didReceiveUploadProgressUpdate(progress:)
func didReceiveUploadProgressUpdate(progress: Float)
Update the progress bar as files are being uploaded to the server
didCompletedUploadWithError()
func didCompletedUploadWithError()
Update UI to indicate that upload was successful
didCompletedUploadWithoutError()
func didCompletedUploadWithoutError()
Update UI to indicate that upload was not successful