#import "SecondViewController.h"
@implementation SecondViewController
@synthesize tableData;
# pragma mark - View lifecycle
- (void)viewDidLoad
{
tableData = [[NSArray alloc] initWithObjects:
@"Kaufmännisch",
@"Elektrotechnik",
@"Metallechnik", nil];
[super viewDidLoad];
}
#pragma mark - Tableview Data Sources methods
- (NSInteger)tableView: (UITableView *)tableView numberOfRowsInSection: (NSInteger)section
{
return [tableData count];
}
- (UITableViewCell *)tableView: (UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
{
UITableViewCell *cell = nil;
cell = [tableView dequeueReusableCellWithIdentifier: @"ausbildung"];
if (cell == nil)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier
"ausbildung"];
}
cell.textLabel.text = [tableData objectAtIndex:indexPath.row];
return cell;
}
@end