Created
December 16, 2014 20:39
-
-
Save iamjason/4461841615c0eeaecfe4 to your computer and use it in GitHub Desktop.
Revisions
-
iamjason created this gist
Dec 16, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,38 @@ class JGCell : UITableViewCell { override init(style: UITableViewCellStyle, reuseIdentifier: String!) { super.init(style: style, reuseIdentifier: reuseIdentifier) setupViews() } required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) setupViews() } override func awakeFromNib() { setupViews() } class var cellReuseIdentifier:String { get { return NSStringFromClass(self) } } class func registerTableView(tableView:UITableView){ tableView.registerClass(self, forCellReuseIdentifier: cellReuseIdentifier) } class func cellWithTableView(tableView:UITableView, indexPath:NSIndexPath) -> JGCell { return tableView.dequeueReusableCellWithIdentifier(cellReuseIdentifier, forIndexPath: indexPath) as JGCell } func setupViews() { } }