Created
July 28, 2016 13:47
-
-
Save asdwd5/c83cc2f2975c1beeb7de487696e99275 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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