cocoaTouch/TeamSettingsViewController.m
changeset 3308 b6dcae4b6d2c
parent 3305 91074496d5c9
child 3315 4e2813713358
equal deleted inserted replaced
3307:275af46392bd 3308:b6dcae4b6d2c
    14 
    14 
    15 #pragma mark -
    15 #pragma mark -
    16 #pragma mark View lifecycle
    16 #pragma mark View lifecycle
    17 - (void)viewDidLoad {
    17 - (void)viewDidLoad {
    18     [super viewDidLoad];
    18     [super viewDidLoad];
    19     
    19 
    20     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    20     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    21     NSString *teamsDirectory = [[paths objectAtIndex:0] stringByAppendingString:@"Teams/"];
    21     NSString *teamsDirectory = [[paths objectAtIndex:0] stringByAppendingString:@"/Teams/"];
    22     
    22     
    23     NSArray *contents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:teamsDirectory
    23     NSArray *contents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:teamsDirectory
    24                                                                             error:NULL];
    24                                                                             error:NULL];
    25     self.list = contents;
    25     self.list = contents;
    26    
    26     NSLog(@"%@\n%@", teamsDirectory, contents);
       
    27 
    27     // Uncomment the following line to preserve selection between presentations.
    28     // Uncomment the following line to preserve selection between presentations.
    28     // self.clearsSelectionOnViewWillAppear = NO;
    29     // self.clearsSelectionOnViewWillAppear = NO;
    29     // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    30     // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    30     self.navigationItem.rightBarButtonItem = self.editButtonItem;
    31     self.navigationItem.rightBarButtonItem = self.editButtonItem;
    31 }
    32 }