Skip to content

Instantly share code, notes, and snippets.

View anthonycvella's full-sized avatar

Anthony Vella anthonycvella

View GitHub Profile
//
// 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",
[
{
"image_id":"mmwVV74",
"hits":"2",
"first_view":"1356242044"
},
{
"image_id":"jSOxa38",
"hits":"5",
"first_view":"1356245094"
NSURL *url = [NSURL URLWithString:[receiveItem objectForKey:@"image"]];
NSData *imageData = [NSData dataWithContentsOfURL:url];
UIImage *itemImage = [UIImage imageWithData:imageData];
itemImageView = [[UIImageView alloc] initWithImage:itemImage];
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {