Created
January 19, 2015 01:56
-
-
Save voznesenskym/73820809e59ad3658517 to your computer and use it in GitHub Desktop.
UserHeaderTableViewCell.swift
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
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