ScannerApp-Swift Documentation

Class Library​Table​View​Cell

class LibraryTableViewCell: UITableViewCell  

Manages recorded scenes and allow users to view the details as well as upload them to the server

%53 LibraryTableViewCell LibraryTableViewCell UITableViewCell UITableViewCell LibraryTableViewCell->UITableViewCell HttpRequestHandlerDelegate HttpRequestHandlerDelegate LibraryTableViewCell->HttpRequestHandlerDelegate

Conforms To

UITableViewCell

Properties

thumbnail

@IBOutlet weak var thumbnail: UIImageView! 

title​Label

@IBOutlet weak var titleLabel: UILabel! 

info​Label

@IBOutlet weak var infoLabel: UILabel! 

upload​Button

@IBOutlet weak var uploadButton: UIButton! 

delete​Button

@IBOutlet weak var deleteButton: UIButton! 

upload​Progress​View

@IBOutlet weak var uploadProgressView: UIProgressView! 

Methods

awake​From​Nib()

override func awakeFromNib()  

Initialization code

set​Selected(_:​animated:​)

override func setSelected(_ selected: Bool, animated: Bool)  

Configure the view for the selected state

setup​Cell​With​URL(url:​)

func setupCellWithURL(url: URL)  

set up cells for the recorded scenes gallery view

upload​Button​Tapped(_:​)

@IBAction func uploadButtonTapped(_ sender: Any)  

When the upload button is pressed, upload the files to the server

delete​Button​Tapped(_:​)

@IBAction func deleteButtonTapped(_ sender: Any)  

When the delete button is pressed, delete all files

did​Receive​Upload​Progress​Update(progress:​)

func didReceiveUploadProgressUpdate(progress: Float)  

Update the progress bar as files are being uploaded to the server

did​Completed​Upload​With​Error()

func didCompletedUploadWithError()  

Update UI to indicate that upload was successful

did​Completed​Upload​Without​Error()

func didCompletedUploadWithoutError()  

Update UI to indicate that upload was not successful