Skip to content

Instantly share code, notes, and snippets.

@yabenatti
Created June 15, 2017 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yabenatti/a97b4172f0a04b53802f3877f8a92dbe to your computer and use it in GitHub Desktop.
Save yabenatti/a97b4172f0a04b53802f3877f8a92dbe to your computer and use it in GitHub Desktop.
Reusable TableViewCell
#import <UIKit/UIKit.h>
static NSString * const reusableCellIdentifier = @"reusableCell";
@interface ReusableTableCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *reusableImageView;
@property (weak, nonatomic) IBOutlet UILabel *reusableLabel;
@end
#import "ReusableTableCell.h"
@implementation ReusableTableCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
/* Set the cell as the .h above NOOOOOT THE FILE OWNER */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment