Skip to content

Instantly share code, notes, and snippets.

@voznesenskym
Created January 19, 2015 01:56
Show Gist options
  • Save voznesenskym/73820809e59ad3658517 to your computer and use it in GitHub Desktop.
Save voznesenskym/73820809e59ad3658517 to your computer and use it in GitHub Desktop.
UserHeaderTableViewCell.swift
import UIKit
protocol UserHeaderTableViewCellDelegate {
func didSelectUserHeaderTableViewCell(Selected: Bool, UserHeader: UserHeaderTableViewCell)
}
class UserHeaderTableViewCell: UITableViewCell {
var delegate : UserHeaderTableViewCellDelegate?
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
@IBAction func selectedHeader(sender: AnyObject) {
delegate?.didSelectUserHeaderTableViewCell(true, UserHeader: self)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment