Skip to content

Instantly share code, notes, and snippets.

@anthonycvella
Created June 2, 2012 20:36
Show Gist options
  • Save anthonycvella/2859856 to your computer and use it in GitHub Desktop.
Save anthonycvella/2859856 to your computer and use it in GitHub Desktop.
//
// DetailsViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "DetailsViewController.h"
@interface DetailsViewController ()
@end
@implementation DetailsViewController
@synthesize serverIP = _serverIP;
@synthesize gameState = _gameState;
@synthesize map = _map;
@synthesize ipLabel = _ipLabel;
@synthesize mapLabel = _mapLabel;
@synthesize statusLabel = _statusLabel;
@synthesize aliveLabel = _aliveLabel;
- (void)viewDidLoad
{
[super viewDidLoad];
NSLog(@"%@", _serverIP);
_ipLabel.text = self.serverIP;
_mapLabel.text = self.map;
_statusLabel.text = self.gameState;
}
- (void)viewDidUnload
{
[self setIpLabel:nil];
[super viewDidUnload];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment