Files
JBChartView/JBChartViewDemo/JBChartViewDemo/Controllers/Base/JBBaseTableViewController.m
T
Brian Donovan aac41605aa Add dealloc methods to the demos.
This is proper Cocoa etiquette and may help others prevent crashes in
their own apps.
2015-04-30 11:48:47 -07:00

50 lines
1.0 KiB
Objective-C

//
// JBBaseTableViewController.m
// JBChartViewDemo
//
// Created by Terry Worona on 11/7/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import "JBBaseTableViewController.h"
@interface JBBaseTableViewController () <UITableViewDataSource, UITableViewDelegate>
@property (nonatomic, strong) UITableView *tableView;
@end
@implementation JBBaseTableViewController
#pragma mark - View Lifecycle
- (void)loadView
{
[super loadView];
self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
self.tableView.delegate = self;
self.tableView.dataSource = self;
[self.view addSubview:self.tableView];
}
- (void)dealloc
{
self.tableView.delegate = nil;
self.tableView.dataSource = nil;
}
#pragma mark - UITableViewDataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 0;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
return nil;
}
@end