Skip to content

Instantly share code, notes, and snippets.

@asdwd5
Created July 28, 2016 13:47
Show Gist options
  • Save asdwd5/c83cc2f2975c1beeb7de487696e99275 to your computer and use it in GitHub Desktop.
Save asdwd5/c83cc2f2975c1beeb7de487696e99275 to your computer and use it in GitHub Desktop.
//
// magazineCell.swift
// project
import UIKit
protocol magazineCellDelegate {
func check(cell: magazineCell)
}
class magazineCell: UICollectionViewCell {
@IBOutlet weak var displayImage: UIImageView!
@IBOutlet weak var displayTitle: UILabel!
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
@IBOutlet weak var progressDownload: UIProgressView!
@IBOutlet weak var progressLabel: UILabel!
var delegate: magazineCellDelegate?
override func awakeFromNib() {
progressDownload.setProgress(0.0, animated: false)
}
func tapped(sender: AnyObject) {
delegate?.check(self)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment