Skip to content

Instantly share code, notes, and snippets.

@anthonycvella
Created June 3, 2012 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonycvella/2865023 to your computer and use it in GitHub Desktop.
Save anthonycvella/2865023 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 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