Skip to content

Instantly share code, notes, and snippets.

View anthonycvella's full-sized avatar

Anthony Vella anthonycvella

View GitHub Profile
//
// DetailsViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "DetailsViewController.h"
- (IBAction)JSONLoader:(id)sender
{
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[spinner startAnimating];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:spinner];
[self refreshServers];
self.navigationItem.leftBarButtonItem = sender;
- (IBAction)JSONLoader:(id)sender
{
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[spinner startAnimating];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:spinner];
[self refreshServers];
self.navigationItem.leftBarButtonItem = sender;
//
// TradeSelectNewTableViewController.m
// WarZ Companion
//
// Created by Anthony on 1/3/13.
// Copyright (c) 2013 Anthony. All rights reserved.
//
#import "ItemDatabase.h"
#import "TradeSelectNewTableViewController.h"
//
// ItemDatabase.h
// WarZ Companion
//
// Created by Anthony on 1/3/13.
// Copyright (c) 2013 Anthony. All rights reserved.
//
#import <Foundation/Foundation.h>
//
// TradeSelectNewTableViewController.m
// WarZ Companion
//
// Created by Anthony on 1/3/13.
// Copyright (c) 2013 Anthony. All rights reserved.
//
#import "ItemDatabase.h"
#import "TradeSelectNewTableViewController.h"
//
// TradeSelectNewTableViewController.m
// WarZ Companion
//
// Created by Anthony on 1/3/13.
// Copyright (c) 2013 Anthony. All rights reserved.
//
#import "ItemDatabase.h"
#import "TradeSelectNewTableViewController.h"
#import "ResourcesTableViewController.h"
@interface ResourcesTableViewController ()
@end
@implementation ResourcesTableViewController
@synthesize resourceCategories;
- (id)initWithStyle:(UITableViewStyle)style
#import "ItemsTableViewController.h"
@interface ItemsTableViewController ()
@end
@implementation ItemsTableViewController
@synthesize categoryType, image_id, dataJSON;
- (id)initWithStyle:(UITableViewStyle)style
{
"first":[
{
"image_id":"vNZYZ08",
"hits":"5",
"first_view":"1356184026"
},
{
"image_id":"j1QZs34",
"hits":"6",