Created
June 3, 2012 20:54
-
-
Save anthonycvella/2865023 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ip = _ip; | |
@synthesize ipLabel = _ipLabel; | |
@synthesize mapLabel = _mapLabel; | |
@synthesize statusLabel = _statusLabel; | |
@synthesize aliveLabel = _aliveLabel; | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
NSLog(@"Info: %@", _ip); | |
NSDictionary *details = [self.ip objectForKey:@"details"]; | |
_ipLabel.text = [self.ip description]; | |
_mapLabel.text = [details objectForKey:@"map"]; | |
_statusLabel.text = [details objectForKey:@"gameState"]; | |
} | |
- (void)viewDidUnload | |
{ | |
[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