Created
June 2, 2012 20:36
-
-
Save anthonycvella/2859856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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