Created
January 19, 2015 02:12
-
-
Save voznesenskym/6542fdc5be589f6ff77f to your computer and use it in GitHub Desktop.
updated func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
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
func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { | |
var header = tableView.dequeueReusableCellWithIdentifier("userheader") as UserHeaderTableViewCell | |
header.delegate = self | |
var id = contactsManager.arrayOfArraysOfContacts[section][0].accountId | |
var account : Account? = AccountsManager.sharedInstance.allAccountsAsDictionaries[id!] | |
header.textLabel?.text = account!.name | |
header.textLabel?.textColor = UIColor.blackColor() | |
header.contentView.backgroundColor = UIColor.whiteColor() | |
return header | |
} | |
func didSelectUserHeaderTableViewCell(Selected: Bool, UserHeader: UserHeaderTableViewCell) { | |
println("Cell Selected!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment