Skip to content
This repository
tree: d0aa41ef47
Fetching contributors…

Cannot retrieve contributors at this time

file 58 lines (44 sloc) 1.389 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
//
// ZPMasterItemListViewController.m
// ZotPad
//
// Created by Mikko Rönkkö on 7/19/12.
// Copyright (c) 2012 Helsiki University of Technology. All rights reserved.
//

#import "ZPMasterItemListViewController.h"
#import "ZPItemListViewDataSource.h"

@interface ZPMasterItemListViewController ()

@end

@implementation ZPMasterItemListViewController

@synthesize detailViewController;

- (id)initWithStyle:(UITableViewStyle)style
{
    self = [super initWithStyle:style];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    DDLogInfo(@"Loading item list in the navigator");

    [super viewDidLoad];

    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;
 
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;

    //TODO: Set the selected item
    self.tableView.delegate = detailViewController;
    self.tableView.dataSource = [ZPItemListViewDataSource instance];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return YES;
}

@end
Something went wrong with that request. Please try again.